Commit 8f9ca6c6 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_web_renderjs_ui: change the way to get web_section.

sometime web_section's type is string
parent 327925b4
...@@ -55,8 +55,9 @@ ...@@ -55,8 +55,9 @@
if response is None:\n if response is None:\n
response = REQUEST.RESPONSE\n response = REQUEST.RESPONSE\n
\n \n
web_section = context\n default_web_page = context\n
default_web_page = web_section.getDefaultDocumentValue()\n web_section = REQUEST.get("current_web_section")\n
\n
\n \n
return default_web_page.WebPage_viewAsWeb(mapping_dict={\n return default_web_page.WebPage_viewAsWeb(mapping_dict={\n
"frontpage_gadget": web_section.getLayoutProperty("configuration_frontpage_gadget_url", default=""),\n "frontpage_gadget": web_section.getLayoutProperty("configuration_frontpage_gadget_url", default=""),\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