# HG changeset patch # User Aurelien Campeas # Date 1246637452 -7200 # Node ID 1f59cd5b710f27e930144a3d4c625e9d00c91bfb # Parent d0cec91ff4c59615179a8d5928efd3b314ac4243 accept a __template parameter that specifies a different (main) template diff -r d0cec91ff4c5 -r 1f59cd5b710f web/application.py --- a/web/application.py Fri Jul 03 18:02:24 2009 +0200 +++ b/web/application.py Fri Jul 03 18:10:52 2009 +0200 @@ -404,8 +404,8 @@ return self.vreg.main_template(req, template, view=view) def main_template_id(self, req): - template = req.property_value('ui.main-template') - if template not in self.vreg.registry('views') : + template = req.form.get('__template', req.property_value('ui.main-template')) + if template not in self.vreg.registry('views'): template = 'main-template' return template