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
141
Merge Requests
141
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
ed67c973
Commit
ed67c973
authored
Dec 13, 2021
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: make renderjs and (new service worker) appstore compatible
parent
172d416c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
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
+3
-1
No files found.
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/WebPage_viewAsWeb.py
View file @
ed67c973
...
...
@@ -30,10 +30,12 @@ web_content = web_page.getTextContent()
if
(
portal_type
==
"Web Script"
):
response
.
setHeader
(
'Content-Type'
,
'application/javascript; charset=utf-8'
)
if
web_page
.
getTextContentSubstitutionMappingMethodId
():
precache_manifest
=
web_section
.
getLayoutProperty
(
"configuration_precache_manifest_script"
,
default
=
"WebSection_getPrecacheManifest"
)
precache_manifest_content
=
getattr
(
web_section
,
precache_manifest
)()
web_content
=
web_page
.
TextDocument_substituteTextContent
(
web_content
,
mapping_dict
=
{
'modification_date'
:
modification_date_string
,
# Make JSLint happy for the service worker code
'required_url_list'
:
json
.
dumps
(
web_section
.
WebSection_getPrecacheManifest
()
)
'required_url_list'
:
json
.
dumps
(
precache_manifest_content
)
})
elif
(
portal_type
==
"Web Style"
):
...
...
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