Commit 35da203f authored by Vincent Pelletier's avatar Vincent Pelletier

Cleanup overcomplexified statements.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10794 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a93616d1
......@@ -86,8 +86,8 @@ IDEAS:\n
tal:define="ignore_layout request/ignore_layout | nothing;\n
layout_form_id here/getApplicableLayout | nothing;\n
layout_form python: layout_form_id and getattr(here, layout_form_id, None) or None;\n
is_web_mode python: (layout_form and not ignore_layout) and True or False;\n
editable_mode python: not layout_form and True or ((not (not(hasattr(context.REQUEST, \'editable_mode\')) or not(context.REQUEST[\'editable_mode\']))) or ignore_layout);\n
is_web_mode python: (layout_form is not None) and (not ignore_layout);\n
editable_mode python: (not is_web_mode) or request.get(\'editable_mode\', 0);\n
dummy python: request.set(\'editable_mode\', editable_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
......
268
\ No newline at end of file
270
\ No newline at end of file
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