Mercurial > public > src > rhodecode
diff pylons_app/controllers/error.py @ 324:9a70fe918a81
fixed error controller __before__ behavior,
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 29 Jun 2010 13:13:09 +0200 |
parents | 6ada8c223374 |
children | 91ba8489119a |
line wrap: on
line diff
--- a/pylons_app/controllers/error.py Tue Jun 29 12:32:30 2010 +0200 +++ b/pylons_app/controllers/error.py Tue Jun 29 13:13:09 2010 +0200 @@ -21,13 +21,13 @@ This behaviour can be altered by changing the parameters to the ErrorDocuments middleware in your config/middleware.py file. """ -# def __before__(self): -# super(ErrorController, self).__before__() + def __before__(self): + pass#disable all base actions since we don't need them here def document(self): resp = request.environ.get('pylons.original_response') - log.debug(resp.status) + log.debug('### %s ###', resp.status) e = request.environ c.serv_p = r'%(protocol)s://%(host)s/' % { @@ -35,7 +35,6 @@ 'host':e.get('HTTP_HOST'), } - if resp.status_int == 404: org_e = request.environ.get('pylons.original_request').environ c.repo_name = repo_name = org_e['PATH_INFO'].split('/')[1]