Mercurial > public > src > rhodecode
changeset 3:a205d4d7abfc
routes for adding a repo
author | Marcin Kuzminski |
---|---|
date | Thu, 18 Feb 2010 13:55:48 +0100 |
parents | 93e77815872e |
children | 505df67c2778 |
files | pylons_app/config/routing.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pylons_app/config/routing.py Thu Feb 18 13:13:21 2010 +0100 +++ b/pylons_app/config/routing.py Thu Feb 18 13:55:48 2010 +0100 @@ -19,7 +19,10 @@ map.connect('/error/{action}/{id}', controller = 'error') # CUSTOM ROUTES HERE - map.connect('hg', '/{path_info:.*}', controller = 'hg', action = "view", + map.connect('hg_add', '/add/{new_repo:[a-z]*}', + controller = 'hg', action = 'add_repo') + map.connect('hg', '/{path_info:.*}', + controller = 'hg', action = "view", path_info = '/', conditions = {'method':'GET'}) return map