changeset 3927:2044213dcb13

prevent CategoryTemplate being listed as a category (it is a Template, but matched also the category regex) - added to sample wikiconfig
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 02 Aug 2008 17:09:08 +0200
parents 44bd12641293
children 544e5091d940
files wiki/config/wikiconfig.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/wiki/config/wikiconfig.py	Fri Aug 01 00:10:23 2008 +0200
+++ b/wiki/config/wikiconfig.py	Sat Aug 02 17:09:08 2008 +0200
@@ -153,7 +153,7 @@
     # e.g. CategoryFoo -> group 'all' ==  CategoryFoo, group 'key' == Foo
     # moin's code will add ^ / $ at beginning / end when needed
     # You must use Unicode strings here [Unicode]
-    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)'