Commit 807ec53a authored by Romain Courteaud's avatar Romain Courteaud

erp5_web_renderjs_ui: try simplifying web section retrieval

parent 5f3494f5
...@@ -10,11 +10,7 @@ response.setBase(None) ...@@ -10,11 +10,7 @@ response.setBase(None)
response.setHeader("Access-Control-Allow-Origin", "*") response.setHeader("Access-Control-Allow-Origin", "*")
web_page = context web_page = context
web_section = REQUEST.get("current_web_section") web_section = context.getWebSectionValue()
if web_section is None:
parent_value = context.getParentValue()
if parent_value.getPortalType() == "Web Section":
web_section = parent_value
if REQUEST.getHeader('If-Modified-Since', '') == web_page.getModificationDate().rfc822(): if REQUEST.getHeader('If-Modified-Since', '') == web_page.getModificationDate().rfc822():
response.setStatus(304) response.setStatus(304)
......
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