Mercurial > public > src > rhodecode
diff pylons_app/config/routing.py @ 148:d928d5f0a251
Adde raw file to routes, and refactoring
updated link to raw file at file source template
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 11 May 2010 22:23:16 +0200 |
parents | f7218849798a |
children | b3c93efd1c97 |
line wrap: on
line diff
--- a/pylons_app/config/routing.py Tue May 11 22:07:43 2010 +0200 +++ b/pylons_app/config/routing.py Tue May 11 22:23:16 2010 +0200 @@ -32,13 +32,22 @@ m.connect('admin_add_repo', '/add_repo/{new_repo:[a-z0-9\. _-]*}', action='add_repo') - map.connect('changeset_home', '/{repo_name}/changeset/{revision}', controller='changeset', revision='tip') - map.connect('summary_home', '/{repo_name}/summary', controller='summary') - map.connect('shortlog_home', '/{repo_name}/shortlog/{revision}', controller='shortlog', revision='tip') - map.connect('branches_home', '/{repo_name}/branches', controller='branches') - map.connect('tags_home', '/{repo_name}/tags', controller='tags') - map.connect('changelog_home', '/{repo_name}/changelog/{revision}', controller='changelog', revision='tip') - map.connect('files_home', '/{repo_name}/files/{revision}/{f_path:.*}', controller='files', revision='tip', f_path='') - map.connect('files_diff_home', '/{repo_name}/diff/{f_path:.*}', controller='files', action='diff', revision='tip', f_path='') - + map.connect('changeset_home', '/{repo_name}/changeset/{revision}', + controller='changeset', revision='tip') + map.connect('summary_home', '/{repo_name}/summary', + controller='summary') + map.connect('shortlog_home', '/{repo_name}/shortlog/{revision}', + controller='shortlog', revision='tip') + map.connect('branches_home', '/{repo_name}/branches', + controller='branches') + map.connect('tags_home', '/{repo_name}/tags', + controller='tags') + map.connect('changelog_home', '/{repo_name}/changelog/{revision}', + controller='changelog', revision='tip') + map.connect('files_home', '/{repo_name}/files/{revision}/{f_path:.*}', + controller='files', revision='tip', f_path='') + map.connect('files_diff_home', '/{repo_name}/diff/{f_path:.*}', + controller='files', action='diff', revision='tip', f_path='') + map.connect('files_raw_home', '/{repo_name}/rawfile/{revision}/{f_path:.*}', + controller='files', action='rawfile', revision='tip', f_path='') return map