web/application.py
branchstable
changeset 2263 1f59cd5b710f
parent 1977 606923dff11b
child 2272 f27a3a75be0d
equal deleted inserted replaced
2262:d0cec91ff4c5 2263:1f59cd5b710f
   402         view = self.vreg.select_view('404', req, None)
   402         view = self.vreg.select_view('404', req, None)
   403         template = self.main_template_id(req)
   403         template = self.main_template_id(req)
   404         return self.vreg.main_template(req, template, view=view)
   404         return self.vreg.main_template(req, template, view=view)
   405 
   405 
   406     def main_template_id(self, req):
   406     def main_template_id(self, req):
   407         template = req.property_value('ui.main-template')
   407         template = req.form.get('__template', req.property_value('ui.main-template'))
   408         if template not in self.vreg.registry('views') :
   408         if template not in self.vreg.registry('views'):
   409             template = 'main-template'
   409             template = 'main-template'
   410         return template
   410         return template
   411 
   411 
   412 
   412 
   413 set_log_methods(CubicWebPublisher, LOGGER)
   413 set_log_methods(CubicWebPublisher, LOGGER)