comparison rhodecode/lib/base.py @ 548:b75b77ef649d

renamed hg_app to rhodecode
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 06 Oct 2010 03:22:52 +0200
parents 1e757ac98988
children 7e536d1af60d
comparison
equal deleted inserted replaced
547:1e757ac98988 548:b75b77ef649d
13 _get_repos_switcher_cached 13 _get_repos_switcher_cached
14 14
15 class BaseController(WSGIController): 15 class BaseController(WSGIController):
16 16
17 def __before__(self): 17 def __before__(self):
18 c.hg_app_version = __version__ 18 c.rhodecode_version = __version__
19 c.hg_app_name = config['hg_app_title'] 19 c.rhodecode_name = config['rhodecode_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 23
24 if c.repo_name: 24 if c.repo_name:
38 # WSGIController.__call__ dispatches to the Controller method 38 # WSGIController.__call__ dispatches to the Controller method
39 # the request is routed to. This routing information is 39 # the request is routed to. This routing information is
40 # available in environ['pylons.routes_dict'] 40 # available in environ['pylons.routes_dict']
41 try: 41 try:
42 #putting this here makes sure that we update permissions every time 42 #putting this here makes sure that we update permissions every time
43 self.hg_app_user = c.hg_app_user = auth.get_user(session) 43 self.rhodecode_user = c.rhodecode_user = auth.get_user(session)
44 return WSGIController.__call__(self, environ, start_response) 44 return WSGIController.__call__(self, environ, start_response)
45 finally: 45 finally:
46 meta.Session.remove() 46 meta.Session.remove()