Mercurial > kallithea
comparison 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 |
comparison
equal
deleted
inserted
replaced
452:f19d3ee89335 | 453:2a95d54b19e6 |
---|---|
18 c.hg_app_version = __version__ | 18 c.hg_app_version = __version__ |
19 c.hg_app_name = config['hg_app_title'] | 19 c.hg_app_name = config['hg_app_title'] |
20 c.repo_name = get_repo_slug(request) | 20 c.repo_name = get_repo_slug(request) |
21 c.cached_repo_list = _get_repos_cached() | 21 c.cached_repo_list = _get_repos_cached() |
22 c.repo_switcher_list = _get_repos_switcher_cached(c.cached_repo_list) | 22 c.repo_switcher_list = _get_repos_switcher_cached(c.cached_repo_list) |
23 | |
24 if c.repo_name: | |
25 c.repository_tags = c.cached_repo_list[c.repo_name].tags | |
26 c.repository_branches = c.cached_repo_list[c.repo_name].branches | |
27 | |
23 self.sa = meta.Session | 28 self.sa = meta.Session |
24 | 29 |
25 def __call__(self, environ, start_response): | 30 def __call__(self, environ, start_response): |
26 """Invoke the Controller""" | 31 """Invoke the Controller""" |
27 # WSGIController.__call__ dispatches to the Controller method | 32 # WSGIController.__call__ dispatches to the Controller method |