Mercurial > kallithea
comparison pylons_app/controllers/error.py @ 191:b68b2246e5a6
Authenticated controller with LoginRequired decorator, and cleaned __before__ (used in baseController now). fixed User for clone url with logged in session user.
Removed login form from admin.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 22 May 2010 01:47:07 +0200 |
parents | 2811259dc12d |
children | 70f645fa97cc |
comparison
equal
deleted
inserted
replaced
190:d8eb7ee27b4c | 191:b68b2246e5a6 |
---|---|
18 related status codes are returned from the application. | 18 related status codes are returned from the application. |
19 | 19 |
20 This behaviour can be altered by changing the parameters to the | 20 This behaviour can be altered by changing the parameters to the |
21 ErrorDocuments middleware in your config/middleware.py file. | 21 ErrorDocuments middleware in your config/middleware.py file. |
22 """ | 22 """ |
23 # | |
24 def __before__(self): | |
25 c.repos_prefix = config['repos_name'] | |
26 | |
27 c.repo_name = request.environ['pylons.original_request']\ | |
28 .environ.get('PATH_INFO').split('/')[1] | |
29 | 23 |
30 def document(self): | 24 def document(self): |
31 resp = request.environ.get('pylons.original_response') | 25 resp = request.environ.get('pylons.original_response') |
32 log.debug(resp.status) | 26 log.debug(resp.status) |
33 | 27 |