Mercurial > kallithea
comparison pylons_app/config/routing.py @ 3:a205d4d7abfc
routes for adding a repo
author | Marcin Kuzminski |
---|---|
date | Thu, 18 Feb 2010 13:55:48 +0100 |
parents | 564e40829f80 |
children | 505df67c2778 |
comparison
equal
deleted
inserted
replaced
2:93e77815872e | 3:a205d4d7abfc |
---|---|
17 # likely stay at the top, ensuring it can always be resolved | 17 # likely stay at the top, ensuring it can always be resolved |
18 map.connect('/error/{action}', controller = 'error') | 18 map.connect('/error/{action}', controller = 'error') |
19 map.connect('/error/{action}/{id}', controller = 'error') | 19 map.connect('/error/{action}/{id}', controller = 'error') |
20 | 20 |
21 # CUSTOM ROUTES HERE | 21 # CUSTOM ROUTES HERE |
22 map.connect('hg', '/{path_info:.*}', controller = 'hg', action = "view", | 22 map.connect('hg_add', '/add/{new_repo:[a-z]*}', |
23 controller = 'hg', action = 'add_repo') | |
24 map.connect('hg', '/{path_info:.*}', | |
25 controller = 'hg', action = "view", | |
23 path_info = '/', conditions = {'method':'GET'}) | 26 path_info = '/', conditions = {'method':'GET'}) |
24 | 27 |
25 return map | 28 return map |