changeset 1447:2e4491ea9572

fix when searching for ()
author Franz Pletz <fpletz AT franz-pletz DOT org>
date Mon, 21 Aug 2006 18:14:16 +0200
parents 1b6f4514eb9f
children 4012f0814295
files MoinMoin/search/queryparser.py MoinMoin/search/results.py
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/queryparser.py	Mon Aug 21 18:06:22 2006 +0200
+++ b/MoinMoin/search/queryparser.py	Mon Aug 21 18:14:16 2006 +0200
@@ -94,6 +94,9 @@
             self.search_re = re.compile(pattern, flags)
             self.pattern = pattern
 
+    def xapian_wanted(self):
+        return False
+
 
 class AndExpression(BaseExpression):
     """ A term connecting several sub terms with a logical AND """
--- a/MoinMoin/search/results.py	Mon Aug 21 18:06:22 2006 +0200
+++ b/MoinMoin/search/results.py	Mon Aug 21 18:14:16 2006 +0200
@@ -724,7 +724,7 @@
         return ''.join([
             f.paragraph(1, attr={'class': 'searchhitinfobar'}),
             f.text('%.1fk - ' % (page.page.size()/1024.0)),
-            f.text('rev: %d %s- ' % (page.page.get_real_rev(),
+            f.text('rev: %d %s- ' % (int(page.page.get_real_rev()),
                 not page.page.rev and '(%s) ' % _('current') or '')),
             f.text('last modified: %(time)s' % page.page.lastEditInfo()),
             # XXX: proper metadata