rename error template to avoid conflicts with the error view tls-sprint
authorsylvain.thenault@logilab.fr
Wed, 18 Feb 2009 20:32:16 +0100
branchtls-sprint
changeset 832 8e06873d80d3
parent 831 83c7e0c467c9
child 833 8c6bfd9158fb
rename error template to avoid conflicts with the error view
web/application.py
web/views/basetemplates.py
--- a/web/application.py	Wed Feb 18 20:31:19 2009 +0100
+++ b/web/application.py	Wed Feb 18 20:32:16 2009 +0100
@@ -387,7 +387,7 @@
             errview = self.vreg.select_view('error', req, None)
             content = self.vreg.main_template(req, 'main-template', view=errview)
         except:
-            content = self.vreg.main_template(req, 'error')
+            content = self.vreg.main_template(req, 'error-template')
         raise StatusResponse(500, content)
     
     def need_login_content(self, req):
--- a/web/views/basetemplates.py	Wed Feb 18 20:31:19 2009 +0100
+++ b/web/views/basetemplates.py	Wed Feb 18 20:32:16 2009 +0100
@@ -185,7 +185,7 @@
     main template. This template may be called for authentication error,
     which means that req.cnx and req.user may not be set.
     """
-    id = 'error'
+    id = 'error-template'
 
     def call(self):
         """display an unexpected error"""