Mercurial > kallithea
diff pylons_app/config/routing.py @ 320:05b212954275
Implemented owner settings, as separete posibility to edit repositry by non administrative owner of repository
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 30 Jun 2010 15:35:10 +0200 |
parents | 43b229a8d782 |
children | 8026872a10ee |
line wrap: on
line diff
--- a/pylons_app/config/routing.py Tue Jun 29 20:45:35 2010 +0200 +++ b/pylons_app/config/routing.py Wed Jun 30 15:35:10 2010 +0200 @@ -115,4 +115,12 @@ map.connect('files_archive_home', '/{repo_name:.*}/archive/{revision}/{fileformat}', controller='files', action='archivefile', revision='tip', conditions=dict(function=check_repo)) + map.connect('repo_settings_update', '/{repo_name:.*}/settings', + controller='settings', action="update", + conditions=dict(method=["PUT"], function=check_repo)) + map.connect('repo_settings_home', '/{repo_name:.*}/settings', + controller='settings', action='index', + conditions=dict(function=check_repo)) + + return map