diff MoinMoin/PageGraphicalEditor.py @ 1549:e36313297589

introduce request.cfg.cache object, start using it for some precompiled regexes
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 14 Sep 2006 22:08:45 +0200
parents 760002b5ffa3
children 1453513eaa7e
line wrap: on
line diff
--- a/MoinMoin/PageGraphicalEditor.py	Thu Sep 14 18:37:05 2006 +0200
+++ b/MoinMoin/PageGraphicalEditor.py	Thu Sep 14 22:08:45 2006 +0200
@@ -300,7 +300,7 @@
         self.request.write("</p>")
 
         # Category selection
-        filter = re.compile(self.cfg.page_category_regex, re.UNICODE).search
+        filter = self.cfg.cache.page_category_regex.search
         cat_pages = self.request.rootpage.getPageList(filter=filter)
         cat_pages.sort()
         cat_pages = [wikiutil.pagelinkmarkup(p) for p in cat_pages]