Mercurial > kallithea
comparison 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 |
comparison
equal
deleted
inserted
replaced
147:873fd2dc62c2 | 148:d928d5f0a251 |
---|---|
30 with map.submapper(path_prefix='/_admin', controller='admin') as m: | 30 with map.submapper(path_prefix='/_admin', controller='admin') as m: |
31 m.connect('admin_home', '/', action='index')#main page | 31 m.connect('admin_home', '/', action='index')#main page |
32 m.connect('admin_add_repo', '/add_repo/{new_repo:[a-z0-9\. _-]*}', action='add_repo') | 32 m.connect('admin_add_repo', '/add_repo/{new_repo:[a-z0-9\. _-]*}', action='add_repo') |
33 | 33 |
34 | 34 |
35 map.connect('changeset_home', '/{repo_name}/changeset/{revision}', controller='changeset', revision='tip') | 35 map.connect('changeset_home', '/{repo_name}/changeset/{revision}', |
36 map.connect('summary_home', '/{repo_name}/summary', controller='summary') | 36 controller='changeset', revision='tip') |
37 map.connect('shortlog_home', '/{repo_name}/shortlog/{revision}', controller='shortlog', revision='tip') | 37 map.connect('summary_home', '/{repo_name}/summary', |
38 map.connect('branches_home', '/{repo_name}/branches', controller='branches') | 38 controller='summary') |
39 map.connect('tags_home', '/{repo_name}/tags', controller='tags') | 39 map.connect('shortlog_home', '/{repo_name}/shortlog/{revision}', |
40 map.connect('changelog_home', '/{repo_name}/changelog/{revision}', controller='changelog', revision='tip') | 40 controller='shortlog', revision='tip') |
41 map.connect('files_home', '/{repo_name}/files/{revision}/{f_path:.*}', controller='files', revision='tip', f_path='') | 41 map.connect('branches_home', '/{repo_name}/branches', |
42 map.connect('files_diff_home', '/{repo_name}/diff/{f_path:.*}', controller='files', action='diff', revision='tip', f_path='') | 42 controller='branches') |
43 | 43 map.connect('tags_home', '/{repo_name}/tags', |
44 controller='tags') | |
45 map.connect('changelog_home', '/{repo_name}/changelog/{revision}', | |
46 controller='changelog', revision='tip') | |
47 map.connect('files_home', '/{repo_name}/files/{revision}/{f_path:.*}', | |
48 controller='files', revision='tip', f_path='') | |
49 map.connect('files_diff_home', '/{repo_name}/diff/{f_path:.*}', | |
50 controller='files', action='diff', revision='tip', f_path='') | |
51 map.connect('files_raw_home', '/{repo_name}/rawfile/{revision}/{f_path:.*}', | |
52 controller='files', action='rawfile', revision='tip', f_path='') | |
44 return map | 53 return map |