comparison 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
comparison
equal deleted inserted replaced
3839:a37ed69fafed 3840:a7db3c488083
452 452
453 # the following regexes should match the complete name when used in free text 453 # the following regexes should match the complete name when used in free text
454 # the group 'all' shall match all, while the group 'key' shall match the key only 454 # the group 'all' shall match all, while the group 'key' shall match the key only
455 # e.g. CategoryFoo -> group 'all' == CategoryFoo, group 'key' == Foo 455 # e.g. CategoryFoo -> group 'all' == CategoryFoo, group 'key' == Foo
456 # moin's code will add ^ / $ at beginning / end when needed 456 # moin's code will add ^ / $ at beginning / end when needed
457 page_category_regex = ur'(?P<all>Category(?P<key>\S+))' 457 page_category_regex = ur'(?P<all>Category(?P<key>(?!Template)\S+))'
458 page_dict_regex = ur'(?P<all>(?P<key>\S+)Dict)' 458 page_dict_regex = ur'(?P<all>(?P<key>\S+)Dict)'
459 page_group_regex = ur'(?P<all>(?P<key>\S+)Group)' 459 page_group_regex = ur'(?P<all>(?P<key>\S+)Group)'
460 page_template_regex = ur'(?P<all>(?P<key>\S+)Template)' 460 page_template_regex = ur'(?P<all>(?P<key>\S+)Template)'
461 461
462 page_license_enabled = False 462 page_license_enabled = False