web/views/basetemplates.py
branchtls-sprint
changeset 832 8e06873d80d3
parent 828 394927376a01
child 872 78f03d6a1505
equal deleted inserted replaced
831:83c7e0c467c9 832:8e06873d80d3
   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()