Commit 9befc11a authored by Vincent Bechu's avatar Vincent Bechu

fixup erp5 configurator

parent 3a80b412
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
conflict_handling: 1, conflict_handling: 1,
parallel_operation_attachment_amount: 10, parallel_operation_attachment_amount: 10,
parallel_operation_amount: 10, parallel_operation_amount: 10,
signature_hash_key: "modification_date",
check_local_attachment_modification: attachment_synchro, check_local_attachment_modification: attachment_synchro,
check_local_attachment_creation: attachment_synchro, check_local_attachment_creation: attachment_synchro,
check_remote_attachment_modification: attachment_synchro, check_remote_attachment_modification: attachment_synchro,
...@@ -54,37 +55,46 @@ ...@@ -54,37 +55,46 @@
} }
}, },
local_sub_storage: { local_sub_storage: {
type: "query", type: "mapping",
property: {
"modification_date": ["formatDate", ["toISOString", "rfc822"]]
},
sub_storage: { sub_storage: {
type: "uuid", type: "query",
sub_storage: { sub_storage: {
type: "indexeddb", type: "uuid",
database: "officejs-erp5" sub_storage: {
type: "indexeddb",
database: "officejs-erp5"
}
} }
} }
}, },
remote_sub_storage: { remote_sub_storage: {
type: "mapping", type: "saferepair",
attachment_list: ["data"], sub_storage: {
attachment: { type: "mapping",
"data": { attachment_list: ["data"],
"get": { attachment: {
"uri_template": (new URI("hateoas")) "data": {
.absoluteTo(erp5_url) "get": {
.toString() + extended_attachment_url "uri_template": (new URI("hateoas"))
}, .absoluteTo(erp5_url)
"put": { .toString() + extended_attachment_url
"erp5_put_template": (new URI("hateoas")).absoluteTo(erp5_url) },
.toString() + "/{+id}/Base_edit" "put": {
"erp5_put_template": (new URI("hateoas")).absoluteTo(erp5_url)
.toString() + "/{+id}/Base_edit"
}
} }
},
sub_storage: {
type: "erp5",
url: (new URI("hateoas"))
.absoluteTo(erp5_url)
.toString(),
default_view_reference: result[2]
} }
},
sub_storage: {
type: "erp5",
url: (new URI("hateoas"))
.absoluteTo(erp5_url)
.toString(),
default_view_reference: result[2]
} }
} }
}; };
......
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>961.22099.5660.20138</string> </value> <value> <string>961.49200.15936.15257</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -291,7 +291,7 @@ ...@@ -291,7 +291,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1502460802.37</float> <float>1504084622.06</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