Commit 2e547774 authored by Roque's avatar Roque

erp5_gadget_interface_validator: update storage to handle new precache manifest response

- test updated
parent 6036a267
......@@ -22,7 +22,7 @@
})
.push(function (evt) {
var key,
precache_dict = evt.target.response,
precache_dict = evt.target.response.url_dict,
result_list = [],
precache_absolute_url = (new URL(precache_url, window.location)).href;
for (key in precache_dict) {
......
......@@ -234,7 +234,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>981.51931.38103.24746</string> </value>
<value> <string>985.49101.35647.15445</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>1581590120.37</float>
<float>1596722312.92</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -22,7 +22,11 @@ url_list = [
if REQUEST is not None:
import json
manifest_dict = {
'url_dict': dict.fromkeys(url_list),
'modification_date': context.getModificationDate().rfc822()
}
REQUEST.RESPONSE.setHeader('Content-Type', 'application/json')
return json.dumps(dict.fromkeys(url_list), indent=2)
return json.dumps(manifest_dict, indent=2)
return url_list
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