equal
deleted
inserted
replaced
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) |