diff MoinMoin/macro/__init__.py @ 919:5469c8b911a4

Splitting out MoinMoin/search.py to MoinMoin/search/*.py
author Franz Pletz <fpletz AT franz-pletz DOT org>
date Tue, 27 Jun 2006 15:09:46 +0200
parents 902c34d95085
children 4eb66637ccd0
line wrap: on
line diff
--- a/MoinMoin/macro/__init__.py	Tue Jun 27 13:58:39 2006 +0200
+++ b/MoinMoin/macro/__init__.py	Tue Jun 27 15:09:46 2006 +0200
@@ -328,8 +328,9 @@
             return '<span class="error">%s</span>' % err
             
         # Return a title search for needle, sorted by name.
-        query = search.QueryParser(literal=literal, titlesearch=1, case=case).parse_query(needle)
-        results = search.searchPages(self.request, query)
+        # XXX: what's with literal?
+        results = search.searchPages(self.request, needle,
+                titlesearch=1, case=case)
         results.sortByPagename()
         return results.pageList(self.request, self.formatter)