Mercurial > public > src > rhodecode
comparison pylons_app/lib/app_globals.py @ 31:2963f2894a7a
Tempalting change, bugfix for serving raw files, and diffs. Now raw files are not parsed thruough mako, and diffs are mako safe (not parsed also)
author | Marcin Kuzminski <marcin@python-blog.com> |
---|---|
date | Thu, 04 Mar 2010 23:13:12 +0100 |
parents | bbaab7501c1a |
children | 2e1247e62c5b |
comparison
equal
deleted
inserted
replaced
30:424167fefd6c | 31:2963f2894a7a |
---|---|
36 | 36 |
37 for k, v in cfg.items('web'): | 37 for k, v in cfg.items('web'): |
38 baseui.setconfig('web', k, v) | 38 baseui.setconfig('web', k, v) |
39 #magic trick to make our custom template dir working | 39 #magic trick to make our custom template dir working |
40 templater.path.append(cfg.get('web', 'templates', None)) | 40 templater.path.append(cfg.get('web', 'templates', None)) |
41 hgwebapp = hgwebdir(paths, baseui = baseui) | 41 |
42 #baseui.setconfig('web', 'description', '') | |
43 #baseui.setconfig('web', 'name', '') | |
44 #baseui.setconfig('web', 'contact', '') | |
45 #baseui.setconfig('web', 'allow_archive', '') | |
46 #baseui.setconfig('web', 'style', 'monoblue_plain') | |
47 #baseui.setconfig('web', 'baseurl', '') | |
48 #baseui.setconfig('web', 'staticurl', '') | |
49 | |
50 hgwebapp = hgwebdir(paths, baseui=baseui) | |
42 return hgwebapp | 51 return hgwebapp |
43 | 52 |
44 | 53 |
45 def set_statics(self, cfg): | 54 def set_statics(self, cfg): |
46 ''' | 55 ''' |