]> gitweb.michael.orlitzky.com - dead/census-tools.git/blob - maps/maps/config/routing.py
Added the linear program solving the midatlantic region.
[dead/census-tools.git] / maps / maps / config / routing.py
1 """Routes configuration
2
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/
6 """
7 from pylons import config
8 from routes import Mapper
9
10 def make_map():
11 """Create, configure and return the routes Mapper"""
12 map = Mapper(directory=config['pylons.paths']['controllers'],
13 always_scan=config['debug'])
14 map.minimization = False
15
16 # The ErrorController route (handles 404/500 error pages); it should
17 # likely stay at the top, ensuring it can always be resolved
18 map.connect('/error/{action}', controller='error')
19 map.connect('/error/{action}/{id}', controller='error')
20
21 # CUSTOM ROUTES HERE
22
23 map.connect('/{controller}/{action}')
24 map.connect('/{controller}/{action}/{id}')
25
26 map.connect('home', '/', controller='location', action='index')
27 return map