comparison pylons_app/config/routing.py @ 80:928416088790

reimplemented summary page, added few filters, removed age from models and made it as filter.
author Marcin Kuzminski <marcin@python-blog.com>
date Sat, 17 Apr 2010 22:17:17 +0200
parents cdf4fda66dd9
children 670713507d03
comparison
equal deleted inserted replaced
79:9fe23fdab9e9 80:928416088790
28 with map.submapper(path_prefix='/_admin', controller='admin') as m: 28 with map.submapper(path_prefix='/_admin', controller='admin') as m:
29 m.connect('admin_home', '/', action='index')#main page 29 m.connect('admin_home', '/', action='index')#main page
30 m.connect('admin_add_repo', '/add_repo/{new_repo:[a-z0-9\. _-]*}', action='add_repo') 30 m.connect('admin_add_repo', '/add_repo/{new_repo:[a-z0-9\. _-]*}', action='add_repo')
31 31
32 32
33 map.connect('summary_home', '/{repo_name}/_summary', controller='hg', action='view') 33 map.connect('summary_home', '/{repo_name}/_summary', controller='hg', action='view')
34
34 map.connect('hg', '/{path_info:.*}', controller='hg', 35 map.connect('hg', '/{path_info:.*}', controller='hg',
35 action="view", path_info='/') 36 action="view", path_info='/')
36 37
37 return map 38 return map