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

erp5_officejs: use new version MappingStorage and SignatureStorage

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