Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Thomas Gambier
erp5
Commits
08862b0f
Commit
08862b0f
authored
7 years ago
by
Vincent Bechu
Browse files
Options
Download
Email Patches
Plain Diff
erp5_officejs: do not use base in officejs
parent
05f0430e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_web_officejs_ui/File_viewAsWeb.py
...eItem/portal_skins/erp5_web_officejs_ui/File_viewAsWeb.py
+4
-0
bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_web_officejs_ui/Image_viewAsWeb.py
...Item/portal_skins/erp5_web_officejs_ui/Image_viewAsWeb.py
+3
-0
bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_web_officejs_ui/WebPage_viewAsWeb.py
...em/portal_skins/erp5_web_officejs_ui/WebPage_viewAsWeb.py
+3
-0
No files found.
bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_web_officejs_ui/File_viewAsWeb.py
View file @
08862b0f
...
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_web_officejs_ui/Image_viewAsWeb.py
View file @
08862b0f
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_web_officejs_ui/WebPage_viewAsWeb.py
View file @
08862b0f
...
...
@@ -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"
)
...
...
This diff is collapsed.
Click to expand it.
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