Mercurial > kallithea
comparison pylons_app/controllers/error.py @ 101:8b06c420491d
statics moved to pylons.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 25 Apr 2010 01:25:54 +0200 |
parents | 9f6300b96380 |
children | 2811259dc12d |
comparison
equal
deleted
inserted
replaced
100:d8fc93ae1866 | 101:8b06c420491d |
---|---|
21 ErrorDocuments middleware in your config/middleware.py file. | 21 ErrorDocuments middleware in your config/middleware.py file. |
22 """ | 22 """ |
23 # | 23 # |
24 def __before__(self): | 24 def __before__(self): |
25 c.repos_prefix = config['repos_name'] | 25 c.repos_prefix = config['repos_name'] |
26 c.staticurl = g.statics | 26 |
27 c.repo_name = request.environ['pylons.original_request']\ | 27 c.repo_name = request.environ['pylons.original_request']\ |
28 .environ.get('PATH_INFO').split('/')[-1] | 28 .environ.get('PATH_INFO').split('/')[-1] |
29 | 29 |
30 def document(self): | 30 def document(self): |
31 resp = request.environ.get('pylons.original_response') | 31 resp = request.environ.get('pylons.original_response') |