Mercurial > public > src > rhodecode
diff pylons_app/config/routing.py @ 47:f6ac79182600
Added rest controllers for repos and users,
templating changes + css fixes
author | Marcin Kuzminski <marcin@python-blog.com> |
---|---|
date | Wed, 07 Apr 2010 20:19:25 +0200 |
parents | d924b931b488 |
children | e00dccb6f211 |
line wrap: on
line diff
--- a/pylons_app/config/routing.py Wed Apr 07 19:39:31 2010 +0200 +++ b/pylons_app/config/routing.py Wed Apr 07 20:19:25 2010 +0200 @@ -22,8 +22,9 @@ with map.submapper(path_prefix='/_admin', controller='admin') as m: m.connect('admin_home', '/', action='index')#main page m.connect('admin_add_repo', '/add_repo/{new_repo:[a-z0-9\. _-]*}', action='add_repo') - m.connect('admin_users_manage', '/repos_manage', action='users_manage') - m.connect('admin_repos_manage', '/users_manage', action='repos_manage') + + map.resource('repo', 'repos', path_prefix='/_admin') + map.resource('user', 'users', path_prefix='/_admin') map.connect('hg', '/{path_info:.*}', controller='hg', action="view", path_info='/')