diff pylons_app/lib/base.py @ 453:2a95d54b19e6

reimplemented tags/branches menu. some css fixes as well for menus
author Marcin Kuzminski <marcin@python-works.com>
date Fri, 03 Sep 2010 16:18:18 +0200
parents 55377fdc1fc6
children 72778dda34cf
line wrap: on
line diff
--- a/pylons_app/lib/base.py	Fri Sep 03 13:15:16 2010 +0200
+++ b/pylons_app/lib/base.py	Fri Sep 03 16:18:18 2010 +0200
@@ -20,6 +20,11 @@
         c.repo_name = get_repo_slug(request)
         c.cached_repo_list = _get_repos_cached()
         c.repo_switcher_list = _get_repos_switcher_cached(c.cached_repo_list)
+        
+        if c.repo_name:
+            c.repository_tags = c.cached_repo_list[c.repo_name].tags
+            c.repository_branches = c.cached_repo_list[c.repo_name].branches
+                    
         self.sa = meta.Session
     
     def __call__(self, environ, start_response):