Mercurial > kallithea
diff rhodecode/lib/app_globals.py @ 1036:405b80e4ccd5 beta
Major refactoring, removed when possible calls to app globals.
Refactored models to fetch the paths needed for scans from database directly
small fixes in base
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 12 Feb 2011 21:21:23 +0100 |
parents | 05528ad948c4 |
children | c1516b35f91d |
line wrap: on
line diff
--- a/rhodecode/lib/app_globals.py Sat Feb 12 18:16:15 2011 +0100 +++ b/rhodecode/lib/app_globals.py Sat Feb 12 21:21:23 2011 +0100 @@ -2,7 +2,6 @@ from beaker.cache import CacheManager from beaker.util import parse_cache_config_options -from vcs.utils.lazy import LazyProperty class Globals(object): """Globals acts as a container for objects available throughout the @@ -18,14 +17,3 @@ """ self.cache = CacheManager(**parse_cache_config_options(config)) self.available_permissions = None # propagated after init_model - self.baseui = None # propagated after init_model - - @LazyProperty - def paths(self): - if self.baseui: - return self.baseui.configitems('paths') - - @LazyProperty - def base_path(self): - if self.baseui: - return self.paths[0][1]