web/application.py
branchtls-sprint
changeset 871 01eb42259154
parent 832 8e06873d80d3
child 882 75488a2a875e
equal deleted inserted replaced
870:0b31dbac6459 871:01eb42259154
   397         return self.vreg.main_template(req, 'loggedout')
   397         return self.vreg.main_template(req, 'loggedout')
   398     
   398     
   399     def notfound_content(self, req):
   399     def notfound_content(self, req):
   400         template = req.property_value('ui.main-template') or 'main-template'
   400         template = req.property_value('ui.main-template') or 'main-template'
   401         req.form['vid'] = '404'
   401         req.form['vid'] = '404'
   402         view404 = self.vreg.select_view('404', req, None)
   402         view = self.vreg.select_view('404', req, None)
   403         return self.vreg.main_template(req, template, view=view)
   403         return self.vreg.main_template(req, template, view=view)
   404 
   404 
   405 
   405 
   406 set_log_methods(CubicWebPublisher, LOGGER)
   406 set_log_methods(CubicWebPublisher, LOGGER)
   407 set_log_methods(CookieSessionHandler, LOGGER)
   407 set_log_methods(CookieSessionHandler, LOGGER)