Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
57094ced
Commit
57094ced
authored
Feb 07, 2020
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: try simplifying web section retrieval
parent
c4e67a81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/WebPage_viewAsWeb.py
...em/portal_skins/erp5_web_renderjs_ui/WebPage_viewAsWeb.py
+1
-5
No files found.
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/WebPage_viewAsWeb.py
View file @
57094ced
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment