diff pylons_app/config/routing.py @ 205:66b20f525750

Added feed controllers, urls,and changed index page to use them.
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 23 May 2010 01:03:54 +0200
parents 55c875d8608b
children d982ed8e32d8
line wrap: on
line diff
--- a/pylons_app/config/routing.py	Sun May 23 00:54:22 2010 +0200
+++ b/pylons_app/config/routing.py	Sun May 23 01:03:54 2010 +0200
@@ -32,6 +32,12 @@
         m.connect('admin_add_repo', '/add_repo/{new_repo:[a-z0-9\. _-]*}',
                   action='add_repo')
     
+    #FEEDS
+    map.connect('rss_feed_home', '/{repo_name}/feed/rss',
+                controller='feed', action='rss')
+    map.connect('atom_feed_home', '/{repo_name}/feed/atom',
+                controller='feed', action='atom')
+    
     map.connect('login_home', '/login', controller='login')
     map.connect('logout_home', '/logout', controller='login', action='logout')
     
@@ -39,7 +45,7 @@
                 controller='changeset', revision='tip')
     map.connect('summary_home', '/{repo_name}/summary',
                 controller='summary')
-    map.connect('shortlog_home', '/{repo_name}/shortlog/',
+    map.connect('shortlog_home', '/{repo_name}/shortlog',
                 controller='shortlog')
     map.connect('branches_home', '/{repo_name}/branches',
                 controller='branches')