Commit bd9eb9cc authored by Jean-Paul Smets's avatar Jean-Paul Smets

Define is_web_mode in REQUEST to reduce code duplication in Web mode widgets and listbox templates.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13164 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9a9c8f7b
......@@ -90,6 +90,7 @@ IDEAS:\n
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment