web/views/error.py
changeset 3451 6b46d73823f5
parent 3377 dd9d292b6a6d
child 4252 6c4f109c2b03
--- a/web/views/error.py	Wed Sep 23 19:26:38 2009 +0200
+++ b/web/views/error.py	Wed Sep 23 19:40:19 2009 +0200
@@ -14,7 +14,7 @@
     __regid__ = '404'
 
     def call(self):
-        _ = self.req._
+        _ = self._cw._
         self.w(u"<h1>%s</h1>" % _('this resource does not exist'))
 
 
@@ -22,6 +22,6 @@
     __regid__ = '500'
 
     def call(self):
-        _ = self.req._
+        _ = self._cw._
         self.w(u"<h1>%s</h1>" %
                _('an error occured, the request cannot be fulfilled'))