Commit 08862b0f authored by Vincent Bechu's avatar Vincent Bechu

erp5_officejs: do not use base in officejs

parent 05f0430e
......@@ -2,6 +2,10 @@ if REQUEST is None:
REQUEST = context.REQUEST
if response is None:
response = REQUEST.RESPONSE
# The vanilla HTML is wanted
response.setBase(None)
file = context
file_content = file.getData()
......
......@@ -3,6 +3,9 @@ if REQUEST is None:
if response is None:
response = REQUEST.RESPONSE
# The vanilla HTML is wanted
response.setBase(None)
image = context
if REQUEST.getHeader('If-Modified-Since', '') == image.getModificationDate().rfc822():
response.setStatus(304)
......
......@@ -3,6 +3,9 @@ if REQUEST is None:
if response is None:
response = REQUEST.RESPONSE
# The vanilla HTML is wanted
response.setBase(None)
web_page = context
web_section = REQUEST.get("current_web_section")
......
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