comparison MoinMoin/config/multiconfig.py @ 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 98660492e634
children 4a3c996f2d5f
comparison
equal deleted inserted replaced
3822:b209aea96826 3823:262738c1f46b
877 877
878 # the following regexes should match the complete name when used in free text 878 # the following regexes should match the complete name when used in free text
879 # the group 'all' shall match all, while the group 'key' shall match the key only 879 # the group 'all' shall match all, while the group 'key' shall match the key only
880 # e.g. CategoryFoo -> group 'all' == CategoryFoo, group 'key' == Foo 880 # e.g. CategoryFoo -> group 'all' == CategoryFoo, group 'key' == Foo
881 # moin's code will add ^ / $ at beginning / end when needed 881 # moin's code will add ^ / $ at beginning / end when needed
882 ('page_category_regex', ur'(?P<all>Category(?P<key>\S+))', 882 ('page_category_regex', ur'(?P<all>Category(?P<key>(?!Template)\S+))',
883 'Pagenames exactly matching this regex are regarded as Wiki categories [Unicode]'), 883 'Pagenames exactly matching this regex are regarded as Wiki categories [Unicode]'),
884 ('page_dict_regex', ur'(?P<all>(?P<key>\S+)Dict)', 884 ('page_dict_regex', ur'(?P<all>(?P<key>\S+)Dict)',
885 'Pagenames exactly matching this regex are regarded as pages containing variable dictionary definitions [Unicode]'), 885 'Pagenames exactly matching this regex are regarded as pages containing variable dictionary definitions [Unicode]'),
886 ('page_group_regex', ur'(?P<all>(?P<key>\S+)Group)', 886 ('page_group_regex', ur'(?P<all>(?P<key>\S+)Group)',
887 'Pagenames exactly matching this regex are regarded as pages containing group definitions [Unicode]'), 887 'Pagenames exactly matching this regex are regarded as pages containing group definitions [Unicode]'),