Commit d3487aa5 authored by Kevin Deldycke's avatar Kevin Deldycke

BugFix: Let the website form be editable even if no form layout found.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9309 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 142056b5
......@@ -89,10 +89,10 @@ MISSING:\n
<tal:block\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_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
editable_mode python: not layout_form 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
<tal:block metal:use-macro="python: getattr(here, page_template).macros[\'master\']">\n
<tal:block metal:fill-slot="context_bar">\n
......
2006-08-22 Kevin
* Unset editable_mode when viewing an object through Web Site object.
* Let the website form be editable even if no form layout found.
2006-08-21 Kevin
* Include support for editable_mode parameter in main_template.
......
100
\ No newline at end of file
102
\ No newline at end of file
1.2.7
\ No newline at end of file
1.2.8
\ 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