1 """Routes configuration
3 The more specific and detailed routes should be defined first so they
4 may take precedent over the more generic routes. For more information
5 refer to the routes manual at http://routes.groovie.org/docs/
8 http://www.winterrodeln.org/feed/berichte/alle
9 http://www.winterrodeln.org/feed/berichte/bahn/kemater_alm
10 http://www.winterrodeln.org/feed/berichte/bahnen/22+42+132
12 http://www.winterrodeln.org/trac/wiki/UrlSchema
14 from routes import Mapper
17 """Create, configure and return the routes Mapper"""
18 map = Mapper(directory=config['pylons.paths']['controllers'],
19 always_scan=config['debug'])
20 map.minimization = False
23 # The ErrorController route (handles 404/500 error pages); it should
24 # likely stay at the top, ensuring it can always be resolved
25 map.connect('/error/{action}', controller='error')
26 map.connect('/error/{action}/{id}', controller='error')
30 map.connect('/berichte/alle', controller='berichte', action='alle')
31 map.connect('/berichte/{action}/{id}', controller='berichte')