Commit 9dd5daf0 authored by Roque's avatar Roque

erp5_officejs: adding a layer in jio data storage to replicate appcache content

parent d34ebc02
......@@ -11,7 +11,9 @@
<script src="jiodev.js" type="text/javascript"></script>
<script src="jio_ojs_storage.js" type="text/javascript"></script>
<script src="jio_appcachestorage.js"></script>
<!-- custom script -->
<script src="gadget_ojs_jio.js" type="text/javascript"></script>
......
......@@ -222,7 +222,7 @@
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>vincent</string> </value>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
......@@ -236,7 +236,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>962.42958.18622.47018</string> </value>
<value> <string>974.20056.15746.59016</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -254,7 +254,7 @@
</tuple>
<state>
<tuple>
<float>1507552322.86</float>
<float>1552415357.71</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -78,6 +78,17 @@
if (jio_options === undefined) {
return;
}
// adding a layer to replicate appcache content into jio data storage
jio_options = {
type: "replicate",
local_sub_storage: jio_options,
remote_sub_storage: {
type: "appcache",
manifest: "gadget_officejs_discussion_tool.appcache",
version: "app/",
take_installer: true
}
};
jio_options = {
type: 'dateupdater',
sub_storage: jio_options,
......@@ -90,6 +101,7 @@
}
return this.getSetting("jio_storage_name")
.push(function (jio_storage_name) {
gadget.state_parameter_dict.jio_storage.repair();
gadget.state_parameter_dict.jio_storage_name = jio_storage_name;
});
})
......
......@@ -234,7 +234,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>973.43582.44368.54391</string> </value>
<value> <string>974.20177.56471.24439</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>1550152243.11</float>
<float>1552422100.12</float>
<string>UTC</string>
</tuple>
</state>
......
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