[Erp5-report] r13164 - /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateIte...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Mar 1 20:52:34 CET 2007


Author: jp
Date: Thu Mar  1 20:52:32 2007
New Revision: 13164

URL: http://svn.erp5.org?rev=13164&view=rev
Log:
Define is_web_mode in REQUEST to reduce code duplication in Web mode widgets and listbox templates.

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/main_template.xml

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/main_template.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/main_template.xml?rev=13164&r1=13163&r2=13164&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/main_template.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/main_template.xml Thu Mar  1 20:52:32 2007
@@ -90,6 +90,7 @@
                editable_mode  python: (not is_web_mode) or request.get(\'editable_mode\', False);\n
                editable_mode_backup editable_mode;\n
                dummy          python: request.set(\'editable_mode\', editable_mode);\n
+               dummy          python: request.set(\'is_web_mode\', is_web_mode);\n
                page_template  python: is_web_mode and ((layout_form.meta_type==\'Page Template\' and layout_form.id) or getattr(layout_form, \'pt\', None)) or \'template_erp5_xhtml_style\';">\n
     <tal:block metal:use-macro="python: getattr(here, page_template).macros[\'master\']">\n
       <tal:block metal:fill-slot="context_bar">\n




More information about the Erp5-report mailing list