Mercurial > public > src > rhodecode
comparison pylons_app/lib/app_globals.py @ 55:e00dccb6f211
Implemented index page using vcs
author | Marcin Kuzminski <marcin@python-blog.com> |
---|---|
date | Thu, 08 Apr 2010 22:59:49 +0200 |
parents | 2e1247e62c5b |
children | bf1b64046c79 |
comparison
equal
deleted
inserted
replaced
54:fdf6dc356d45 | 55:e00dccb6f211 |
---|---|
26 #the fastest one but belive the wsgiapp is better | 26 #the fastest one but belive the wsgiapp is better |
27 #self.hgapp = self.make_web_app() | 27 #self.hgapp = self.make_web_app() |
28 self.cache = CacheManager(**parse_cache_config_options(config)) | 28 self.cache = CacheManager(**parse_cache_config_options(config)) |
29 self.hgapp = wsgiapplication(self.make_web_app) | 29 self.hgapp = wsgiapplication(self.make_web_app) |
30 | 30 |
31 | |
32 def make_web_app(self): | 31 def make_web_app(self): |
33 repos = "hgwebdir.config" | 32 repos = "hgwebdir.config" |
34 baseui = ui.ui() | 33 baseui = ui.ui() |
35 cfg = config.config() | 34 cfg = config.config() |
36 cfg.read(repos) | 35 cfg.read(repos) |
37 paths = cfg.items('paths') | 36 paths = cfg.items('paths') |
37 self.paths = paths | |
38 self.check_repo_dir(paths) | 38 self.check_repo_dir(paths) |
39 | |
39 self.set_statics(cfg) | 40 self.set_statics(cfg) |
40 | 41 |
41 for k, v in cfg.items('web'): | 42 for k, v in cfg.items('web'): |
42 baseui.setconfig('web', k, v) | 43 baseui.setconfig('web', k, v) |
43 #magic trick to make our custom template dir working | 44 #magic trick to make our custom template dir working |