changeset 3823:262738c1f46b

prevent CategoryTemplate being listed as a category (it is a Template, but matched also the category regex)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 10 Jul 2008 16:13:24 +0200
parents b209aea96826
children aef3adf3f701
files MoinMoin/config/multiconfig.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/config/multiconfig.py	Thu Jul 10 10:14:06 2008 +0200
+++ b/MoinMoin/config/multiconfig.py	Thu Jul 10 16:13:24 2008 +0200
@@ -879,7 +879,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+))',
      'Pagenames exactly matching this regex are regarded as Wiki categories [Unicode]'),
     ('page_dict_regex', ur'(?P<all>(?P<key>\S+)Dict)',
      'Pagenames exactly matching this regex are regarded as pages containing variable dictionary definitions [Unicode]'),