Commit 36a2f92c authored by Kevin Deldycke's avatar Kevin Deldycke

Unset editable_mode when viewing an object through Web Site object.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9305 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1507dc8d
......@@ -86,9 +86,11 @@ MISSING:\n
-->\n
</tal:block>\n
<tal:block metal:define-macro="master">\n
<tal:block tal:define="ignore_layout request/ignore_layout | nothing;\n
<tal:block\n
tal:define="ignore_layout request/ignore_layout | nothing;\n
layout_form_id here/getApplicableLayout | nothing;\n
editable_mode python: layout_form_id and request.get(\'editable_mode\', ignore_layout) or 1;\n
is_edit_mode python: not (not(hasattr(context.REQUEST, \'editable_mode\')) or not(context.REQUEST[\'editable_mode\']));\n
editable_mode python: layout_form_id in (\'\', None) and True or (is_edit_mode or ignore_layout);\n
dummy python: request.set(\'editable_mode\', editable_mode);\n
layout_form python: layout_form_id and getattr(here, layout_form_id, None) or None;\n
page_template python: (layout_form and not(ignore_layout)) and getattr(layout_form, \'pt\', None) or \'template_erp5_xhtml_style\';">\n
......
2006-08-22 Kevin
* Unset editable_mode when viewing an object through Web Site object.
2006-08-21 Kevin
* Include support for editable_mode parameter in main_template.
* Remove default value (by jp).
......
99
\ No newline at end of file
100
\ No newline at end of file
1.2.6
\ No newline at end of file
1.2.7
\ 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