Changeset - 7a086a83f00b
[Not reviewed]
default
0 1 0
Marcin Kuzminski - 15 years ago 2010-07-21 22:55:47
marcin@python-works.com
Disabled special 404 page. That function was really not needed
1 file changed with 0 insertions and 11 deletions:
0 comments (0 inline, 0 general)
pylons_app/controllers/error.py
Show inline comments
 
@@ -36,17 +36,6 @@ class ErrorController(BaseController):
 
                                                'host':e.get('HTTP_HOST'),
 
                                                }
 

	
 
        if resp.status_int == 404:
 
            org_e = request.environ.get('pylons.original_request').environ
 
            try:
 
                c.repo_name = org_e['PATH_INFO'].split('/')[1]
 
            except IndexError:
 
                c.repo_name = ''
 
            
 
            c.hg_app_version = __version__
 
            c.repo_name_cleaned = h.repo_name_slug(c.repo_name)
 
            if check_repo(c.repo_name, g.base_path):
 
                return render('/errors/error_404.html')
 
                
 
        c.error_message = cgi.escape(request.GET.get('code', str(resp.status)))
 
        c.error_explanation = self.get_error_explanation(resp.status_int)
0 comments (0 inline, 0 general)