changeset 311:9a70fe918a81

fixed error controller __before__ behavior,
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 29 Jun 2010 13:13:09 +0200
parents fc4027fe46bc
children 91ba8489119a
files pylons_app/controllers/error.py
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
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]