web/views/error.py
changeset 3451 6b46d73823f5
parent 3377 dd9d292b6a6d
child 4252 6c4f109c2b03
equal deleted inserted replaced
3448:495862266785 3451:6b46d73823f5
    12 
    12 
    13 class FourOhFour(StartupView):
    13 class FourOhFour(StartupView):
    14     __regid__ = '404'
    14     __regid__ = '404'
    15 
    15 
    16     def call(self):
    16     def call(self):
    17         _ = self.req._
    17         _ = self._cw._
    18         self.w(u"<h1>%s</h1>" % _('this resource does not exist'))
    18         self.w(u"<h1>%s</h1>" % _('this resource does not exist'))
    19 
    19 
    20 
    20 
    21 class ErrorOccured(StartupView):
    21 class ErrorOccured(StartupView):
    22     __regid__ = '500'
    22     __regid__ = '500'
    23 
    23 
    24     def call(self):
    24     def call(self):
    25         _ = self.req._
    25         _ = self._cw._
    26         self.w(u"<h1>%s</h1>" %
    26         self.w(u"<h1>%s</h1>" %
    27                _('an error occured, the request cannot be fulfilled'))
    27                _('an error occured, the request cannot be fulfilled'))