Commit 51b61d38 authored by Boris Kocherov's avatar Boris Kocherov

erp5_officejs: use new version MappingStorage and SignatureStorage

parent f6fc6cd1
...@@ -18,13 +18,10 @@ ...@@ -18,13 +18,10 @@
function get_jio_cache_storage(name) { function get_jio_cache_storage(name) {
return { return {
type: "query", type: "uuid",
sub_storage: { sub_storage: {
type: "uuid", type: "indexeddb",
sub_storage: { database: 'officejs_' + name + '_cache_erp5'
type: "indexeddb",
database: 'officejs_' + name + '_cache_erp5'
}
} }
}; };
} }
...@@ -162,12 +159,17 @@ ...@@ -162,12 +159,17 @@
use_bulk_get: true, use_bulk_get: true,
use_bulk: true, use_bulk: true,
attachment_list: [], attachment_list: [],
signature_storage: get_jio_cache_storage(name + "_hash"),
local_sub_storage: { local_sub_storage: {
type: "mapping", type: "mapping",
sub_storage: get_jio_cache_storage(name), map_all_property: true,
map_id: ["equalSubProperty", "relative_url"],
mapping_dict: { mapping_dict: {
"id": {"equal": "relative_url"}, "url_string": ["equalSubId"]
"url_string": {"equal": "id"} },
sub_storage: {
type: "query",
sub_storage: get_jio_cache_storage(name)
} }
}, },
remote_sub_storage: { remote_sub_storage: {
......
...@@ -238,7 +238,7 @@ ...@@ -238,7 +238,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>955.61588.62123.53248</string> </value> <value> <string>956.8405.36478.63112</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -256,7 +256,7 @@ ...@@ -256,7 +256,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1481796866.22</float> <float>1482406609.1</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -11,13 +11,10 @@ ...@@ -11,13 +11,10 @@
function get_jio_cache_storage(name) { function get_jio_cache_storage(name) {
return { return {
type: "query", type: "uuid",
sub_storage: { sub_storage: {
type: "uuid", type: "indexeddb",
sub_storage: { database: 'officejs_' + name + '_cache_erp5'
type: "indexeddb",
database: 'officejs_' + name + '_cache_erp5'
}
} }
}; };
} }
...@@ -155,12 +152,17 @@ ...@@ -155,12 +152,17 @@
use_bulk_get: true, use_bulk_get: true,
use_bulk: true, use_bulk: true,
attachment_list: [], attachment_list: [],
signature_storage: get_jio_cache_storage(name + "_hash"),
local_sub_storage: { local_sub_storage: {
type: "mapping", type: "mapping",
sub_storage: get_jio_cache_storage(name), map_all_property: true,
map_id: ["equalSubProperty", "relative_url"],
mapping_dict: { mapping_dict: {
"id": {"equal": "relative_url"}, "url_string": ["equalSubId"]
"url_string": {"equal": "id"} },
sub_storage: {
type: "query",
sub_storage: get_jio_cache_storage(name)
} }
}, },
remote_sub_storage: { remote_sub_storage: {
......
...@@ -224,7 +224,7 @@ ...@@ -224,7 +224,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>955.63758.17874.13260</string> </value> <value> <string>956.8402.60552.35737</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -242,7 +242,7 @@ ...@@ -242,7 +242,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1481796844.01</float> <float>1482405596.26</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </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