equal
deleted
inserted
replaced
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')) |