diff MoinMoin/wikiutil.py @ 3573:124d0ef138aa

change page_*_regex processing, see docs/CHANGES (fixes Xapian category search for non-english)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 10 May 2008 23:37:00 +0200
parents a81ad9e5d220
children 3ec104f63144
line wrap: on
line diff
--- a/MoinMoin/wikiutil.py	Sat May 10 17:28:44 2008 +0200
+++ b/MoinMoin/wikiutil.py	Sat May 10 23:37:00 2008 +0200
@@ -706,7 +706,7 @@
     @rtype: bool
     @return: true if page is a template page
     """
-    return request.cfg.cache.page_template_regex.search(pagename) is not None
+    return request.cfg.cache.page_template_regexact.search(pagename) is not None
 
 
 def isGroupPage(request, pagename):
@@ -716,7 +716,7 @@
     @rtype: bool
     @return: true if page is a form page
     """
-    return request.cfg.cache.page_group_regex.search(pagename) is not None
+    return request.cfg.cache.page_group_regexact.search(pagename) is not None
 
 
 def filterCategoryPages(request, pagelist):
@@ -733,7 +733,7 @@
     @rtype: list
     @return: only the category pages of pagelist
     """
-    func = request.cfg.cache.page_category_regex.search
+    func = request.cfg.cache.page_category_regexact.search
     return [pn for pn in pagelist if func(pn)]