diff MoinMoin/config/multiconfig.py @ 3840:a7db3c488083

prevent CategoryTemplate being listed as a category (it is a Template, but matched also the category regex) (backport from 1.8)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 14 Jul 2008 03:04:34 +0200
parents 61ca04aca385
children 5c91b9e2b9fc 85cd05b8af42
line wrap: on
line diff
--- a/MoinMoin/config/multiconfig.py	Mon Jul 14 02:25:33 2008 +0200
+++ b/MoinMoin/config/multiconfig.py	Mon Jul 14 03:04:34 2008 +0200
@@ -454,7 +454,7 @@
     # the group 'all' shall match all, while the group 'key' shall match the key only
     # e.g. CategoryFoo -> group 'all' ==  CategoryFoo, group 'key' == Foo
     # moin's code will add ^ / $ at beginning / end when needed
-    page_category_regex = ur'(?P<all>Category(?P<key>\S+))'
+    page_category_regex =  ur'(?P<all>Category(?P<key>(?!Template)\S+))'
     page_dict_regex = ur'(?P<all>(?P<key>\S+)Dict)'
     page_group_regex = ur'(?P<all>(?P<key>\S+)Group)'
     page_template_regex = ur'(?P<all>(?P<key>\S+)Template)'