changeset 354:7a086a83f00b

Disabled special 404 page. That function was really not needed
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 21 Jul 2010 22:55:47 +0200
parents 07f50e9b308f
children 5bbcc0cac389
files pylons_app/controllers/error.py
diffstat 1 files changed, 0 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/pylons_app/controllers/error.py	Wed Jul 21 22:53:04 2010 +0200
+++ b/pylons_app/controllers/error.py	Wed Jul 21 22:55:47 2010 +0200
@@ -36,17 +36,6 @@
                                                 '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)