Commit a76679f7 authored by Vincent Bechu's avatar Vincent Bechu

erp5_officejs: change installer mapping dict

parent e9611c80
...@@ -38,10 +38,11 @@ var repair = false; ...@@ -38,10 +38,11 @@ var repair = false;
}, },
local_sub_storage: { local_sub_storage: {
type: "mapping", type: "mapping",
no_query_id: true,
map_all_property: true, 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: { sub_storage: {
type: "query", type: "query",
...@@ -222,9 +223,12 @@ var repair = false; ...@@ -222,9 +223,12 @@ var repair = false;
var url_list = doc.text_content.split('\r\n'), var url_list = doc.text_content.split('\r\n'),
i, i,
take = false; take = false;
if (typeof url_list === "string") { if (url_list.length === 1) {
url_list = doc.text_content.split('\n'); url_list = doc.text_content.split('\n');
} }
if (url_list.length === 1) {
url_list = doc.text_content.split('\r');
}
for (i = 0; i < url_list.length; i += 1) { for (i = 0; i < url_list.length; i += 1) {
if (url_list[i].indexOf("NETWORK:") >= 0) { if (url_list[i].indexOf("NETWORK:") >= 0) {
take = false; take = false;
......
...@@ -222,7 +222,7 @@ ...@@ -222,7 +222,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>955.59498.53728.18602</string> </value> <value> <string>956.5849.44474.42086</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -240,7 +240,7 @@ ...@@ -240,7 +240,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1481538523.87</float> <float>1482259856.41</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