comparison MoinMoin/app.py @ 1919:20867923566a

fix ItemNameConverter regex, fixes #316
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 02 Feb 2013 03:07:59 +0100
parents f38a893334b5
children 2bd864ed640e 5281fec759b1
comparison
equal deleted inserted replaced
1918:f0b346ac6338 1919:20867923566a
110 Rule('/<itemname:wikipage>') 110 Rule('/<itemname:wikipage>')
111 Rule('/<itemname:wikipage>/edit') 111 Rule('/<itemname:wikipage>/edit')
112 112
113 :param map: the :class:`Map`. 113 :param map: the :class:`Map`.
114 """ 114 """
115 regex = '[^/].*?[^/]' 115 regex = '[^/]+?(/[^/]+?)*'
116 weight = 200 116 weight = 200
117 117
118 app.url_map.converters['itemname'] = ItemNameConverter 118 app.url_map.converters['itemname'] = ItemNameConverter
119 # register modules, before/after request functions 119 # register modules, before/after request functions
120 from MoinMoin.apps.frontend import frontend 120 from MoinMoin.apps.frontend import frontend