equal
deleted
inserted
replaced
183 class ErrorTemplate(TheMainTemplate): |
183 class ErrorTemplate(TheMainTemplate): |
184 """fallback template if an internal error occured during displaying the |
184 """fallback template if an internal error occured during displaying the |
185 main template. This template may be called for authentication error, |
185 main template. This template may be called for authentication error, |
186 which means that req.cnx and req.user may not be set. |
186 which means that req.cnx and req.user may not be set. |
187 """ |
187 """ |
188 id = 'error' |
188 id = 'error-template' |
189 |
189 |
190 def call(self): |
190 def call(self): |
191 """display an unexpected error""" |
191 """display an unexpected error""" |
192 self.set_request_content_type() |
192 self.set_request_content_type() |
193 self.req.reset_headers() |
193 self.req.reset_headers() |