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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mikolaï Krol
erp5
Commits
ed8c62b5
Commit
ed8c62b5
authored
Jan 06, 2020
by
Romain Courteaud
Committed by
Xiaowu Zhang
Jan 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: appcache document may not exist
parent
e0dec940
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs/Base_getListFileFromAppcache.py
...l_skins/erp5_web_renderjs/Base_getListFileFromAppcache.py
+7
-2
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs/WebSite_checkCacheModificationDateConsistency.py
...renderjs/WebSite_checkCacheModificationDateConsistency.py
+4
-2
No files found.
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs/Base_getListFileFromAppcache.py
View file @
ed8c62b5
appcache_reference
=
context
.
getLayoutProperty
(
"configuration_manifest_url"
,
default
=
"gadget_erp5.appcache"
)
text_conten
t
=
context
.
getPortalObject
().
portal_catalog
.
getResultValue
(
web_manifes
t
=
context
.
getPortalObject
().
portal_catalog
.
getResultValue
(
portal_type
=
'Web Manifest'
,
reference
=
appcache_reference
).
getTextContent
()
reference
=
appcache_reference
)
if
web_manifest
is
None
:
text_content
=
''
else
:
text_content
=
web_manifest
.
getTextContent
()
translation_data_url_list
=
[]
url_list
=
[]
...
...
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs/WebSite_checkCacheModificationDateConsistency.py
View file @
ed8c62b5
...
...
@@ -7,7 +7,9 @@ error_list = []
if
appcache_reference
:
url_list
=
context
.
Base_getListFileFromAppcache
()
# Check that the manifest is newer than all cached resources.
appcache_manifest
=
getDocumentValue
(
appcache_reference
).
getObject
()
appcache_manifest
=
getDocumentValue
(
appcache_reference
)
if
appcache_manifest
is
not
None
:
appcache_manifest
=
appcache_manifest
.
getObject
()
appcache_manifest_modification_date
=
appcache_manifest
.
getModificationDate
()
for
url
in
url_list
:
if
url
:
...
...
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