changeset 2219:dc5cd1a4b397

xapian search: fix crash when excluding system items
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 26 May 2007 18:43:18 +0200
parents c391df32467f
children 2be09fd7a1c9
files MoinMoin/search/queryparser.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/queryparser.py	Sat May 26 18:28:07 2007 +0200
+++ b/MoinMoin/search/queryparser.py	Sat May 26 18:43:18 2007 +0200
@@ -796,7 +796,7 @@
     def search(self, page):
         checks = {'underlay': page.isUnderlayPage,
                   'standard': page.isStandardPage,
-                  'system': wikiutil.isSystemPage(page.request, page.page_name),
+                  'system': lambda page: wikiutil.isSystemPage(page.request, page.page_name),
                  }
 
         try: