comparison pylons_app/config/routing.py @ 103:665b344927f4

Added changeset controllers
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 25 Apr 2010 22:16:05 +0200
parents 5b57295601b6
children cfddee9d3693
comparison
equal deleted inserted replaced
102:2dc0c8e4f384 103:665b344927f4
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('summary_home', '/{repo_name}/summary', controller='summary') 36 map.connect('summary_home', '/{repo_name}/summary', controller='summary')
36 map.connect('changelog_home', '/{repo_name}/changelog', controller='changelog') 37 map.connect('changelog_home', '/{repo_name}/changelog', controller='changelog')
37 map.connect('branches_home', '/{repo_name}/branches', controller='branches') 38 map.connect('branches_home', '/{repo_name}/branches', controller='branches')
38 map.connect('tags_home', '/{repo_name}/tags', controller='tags') 39 map.connect('tags_home', '/{repo_name}/tags', controller='tags')
39 map.connect('graph_home', '/{repo_name}/graph/{revision}', controller='graph', revision='tip') 40 map.connect('graph_home', '/{repo_name}/graph/{revision}', controller='graph', revision='tip')