equal
deleted
inserted
replaced
164 |
164 |
165 def page_title(self): |
165 def page_title(self): |
166 """returns a title according to the result set - used for the |
166 """returns a title according to the result set - used for the |
167 title in the HTML header |
167 title in the HTML header |
168 """ |
168 """ |
169 return self._cw._('an error occured') |
169 return self._cw._('an error occurred') |
170 |
170 |
171 def call(self): |
171 def call(self): |
172 req = self._cw.reset_headers() |
172 req = self._cw.reset_headers() |
173 w = self.w |
173 w = self.w |
174 ex = req.data.get('ex')#_("unable to find exception information")) |
174 ex = req.data.get('ex')#_("unable to find exception information")) |
175 excinfo = req.data.get('excinfo') |
175 excinfo = req.data.get('excinfo') |
176 title = self._cw._('an error occured') |
176 title = self._cw._('an error occurred') |
177 w(u'<h2>%s</h2>' % title) |
177 w(u'<h2>%s</h2>' % title) |
178 if 'errmsg' in req.data: |
178 if 'errmsg' in req.data: |
179 ex = req.data['errmsg'] |
179 ex = req.data['errmsg'] |
180 exclass = None |
180 exclass = None |
181 else: |
181 else: |