diff --git a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_configurator_html.xml b/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_configurator_html.xml
index e62579c6fdd0fac91cc6ad5cf5c1e280a01974ee..9ad323cc5dafec5a72a73af4debac982e02e0863 100644
--- a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_configurator_html.xml
+++ b/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_configurator_html.xml
@@ -144,6 +144,11 @@
\n
\n
\n
+ \n
\n
@@ -297,7 +302,7 @@
-
actor
- cedric.le.ninivin
+ zope
-
comment
@@ -311,7 +316,7 @@
-
serial
- 947.12629.17894.55808
+ 949.20639.37177.22408
-
state
@@ -329,7 +334,7 @@
- 1448032104.14
+ 1456135138.17
UTC
diff --git a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_configurator_js.xml b/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_configurator_js.xml
index 90656d6eb65f4ab8bb800f9c729f7fc8c267525d..6f21b7a6800310362a15a33a1d8e4c83d9b42ec3 100644
--- a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_configurator_js.xml
+++ b/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_configurator_js.xml
@@ -178,6 +178,11 @@
function setDAVConfiguration(gadget) {\n
return gadget.redirect({page: \'jio_dav_configurator\'});\n
}\n
+\n
+ /* // Dropbox\n
+ function setDropboxConfiguration(gadget) {\n
+ return gadget.redirect({page: \'jio_dropbox_configurator\'});\n
+ } */\n
\n
var gadget_klass = rJS(window);\n
\n
@@ -239,7 +244,15 @@
function () {\n
return setDAVConfiguration(gadget);\n
}\n
- )\n
+ ) /*, // Dropbox\n
+ loopEventListener(\n
+ gadget.props.element.querySelector(\'form.select-dropbox-form\'),\n
+ \'submit\',\n
+ true,\n
+ function () {\n
+ return setDropboxConfiguration(gadget);\n
+ }\n
+ ) */\n
]);\n
});\n
});\n
@@ -368,7 +381,7 @@
-
actor
- cedric.le.ninivin
+ zope
-
comment
@@ -382,7 +395,7 @@
-
serial
- 947.12629.17894.55808
+ 949.20690.55610.35242
-
state
@@ -400,7 +413,7 @@
- 1447936126.33
+ 1456134900.49
UTC
diff --git a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_dropbox_configurator_html.xml b/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_dropbox_configurator_html.xml
new file mode 100644
index 0000000000000000000000000000000000000000..d87024af7dcc3bf7f2e34a7ae0405ac65156397a
--- /dev/null
+++ b/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_dropbox_configurator_html.xml
@@ -0,0 +1,406 @@
+
+
+
+
+
+
+
+
+
-
+ _Access_contents_information_Permission
+
+
+ Anonymous
+ Assignee
+ Assignor
+ Associate
+ Auditor
+ Manager
+ Owner
+
+
+
+ -
+ _Add_portal_content_Permission
+
+
+ Assignee
+ Assignor
+ Manager
+
+
+
+ -
+ _Change_local_roles_Permission
+
+
+ Assignor
+ Manager
+
+
+
+ -
+ _Modify_portal_content_Permission
+
+
+ Assignee
+ Assignor
+ Manager
+
+
+
+ -
+ _View_Permission
+
+
+ Anonymous
+ Assignee
+ Assignor
+ Associate
+ Auditor
+ Manager
+ Owner
+
+
+
+ -
+ content_md5
+
+
+
+
+ -
+ content_type
+ text/html
+
+ -
+ default_reference
+ gadget_officejs_page_jio_dropbox_configurator.html
+
+ -
+ description
+
+
+
+
+ -
+ id
+ gadget_officejs_page_jio_dropbox_configurator_html
+
+ -
+ language
+
+
+
+
+ -
+ portal_type
+ Web Page
+
+ -
+ short_title
+
+
+
+
+ -
+ text_content
+ \n
+\n
+ \n
+ \n
+ \n
+\n
+ OfficeJS jIO Dropbox Configurator Page\n
+\n
+ \n
+ \n
+\n
+ \n
+\n
+ \n
+\n
+ \n
+ \n
+ \n
+ \n
+ \n
+ \n
+ \n
+ \n
+ \n
+ \n
+
+
+]]>
+
+ -
+ title
+ OfficeJS jIO Dropbox Configurator Page
+
+ -
+ version
+
+
+
+
+ -
+ workflow_history
+
+ AAAAAAAAAAI=
+
+
+
+
+
+
+
+
+
+
+
+ -
+ data
+
+
+
-
+ document_publication_workflow
+
+ AAAAAAAAAAM=
+
+
+ -
+ edit_workflow
+
+ AAAAAAAAAAQ=
+
+
+ -
+ processing_status_workflow
+
+ AAAAAAAAAAU=
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+ action
+ publish_alive
+
+ -
+ actor
+ lucas_parsy
+
+ -
+ comment
+
+
+ -
+ error_message
+
+
+ -
+ time
+
+
+
+
+ -
+ validation_state
+ published_alive
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+ action
+ edit
+
+ -
+ actor
+ zope
+
+ -
+ comment
+
+
+
+
+ -
+ error_message
+
+
+ -
+ serial
+ 947.57126.51132.11229
+
+ -
+ state
+ current
+
+ -
+ time
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+ action
+ detect_converted_file
+
+ -
+ actor
+ zope
+
+ -
+ comment
+
+
+ -
+ error_message
+
+
+ -
+ external_processing_state
+ converted
+
+ -
+ serial
+ 0.0.0.0
+
+ -
+ time
+
+
+
+
+
+
+
+
+
+
diff --git a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_dropbox_configurator_js.xml b/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_dropbox_configurator_js.xml
new file mode 100644
index 0000000000000000000000000000000000000000..c29fb1d70d421df1fad9e0bcabe76788723b7caa
--- /dev/null
+++ b/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_dropbox_configurator_js.xml
@@ -0,0 +1,440 @@
+
+
+
+
+
+
+
+
+ -
+ _Access_contents_information_Permission
+
+
+ Anonymous
+ Assignee
+ Assignor
+ Associate
+ Auditor
+ Manager
+ Owner
+
+
+
+ -
+ _Add_portal_content_Permission
+
+
+ Assignee
+ Assignor
+ Manager
+
+
+
+ -
+ _Change_local_roles_Permission
+
+
+ Assignor
+ Manager
+
+
+
+ -
+ _Modify_portal_content_Permission
+
+
+ Assignee
+ Assignor
+ Manager
+
+
+
+ -
+ _View_Permission
+
+
+ Anonymous
+ Assignee
+ Assignor
+ Associate
+ Auditor
+ Manager
+ Owner
+
+
+
+ -
+ content_md5
+
+
+
+
+ -
+ default_reference
+ gadget_officejs_page_jio_dropbox_configurator.js
+
+ -
+ description
+
+
+
+
+ -
+ id
+ gadget_officejs_page_jio_dropbox_configurator_js
+
+ -
+ language
+
+
+
+
+ -
+ portal_type
+ Web Script
+
+ -
+ short_title
+
+
+
+
+ -
+ text_content
+ /*global window, rJS, RSVP, URI, location,\n
+ loopEventListener, btoa */\n
+/*jslint nomen: true, indent: 2, maxerr: 3*/\n
+(function (window, rJS, RSVP) {\n
+ "use strict";\n
+\n
+ function setjIODropboxConfiguration(gadget) {\n
+ var configuration = {\n
+ type: "replicate",\n
+ // XXX This drop the signature lists...\n
+ query: {\n
+ query: \'portal_type:"Web Page" \',\n
+ // XX Synchonizing the whole module is too much, here is a way to start quietly\n
+ //+ \'AND local_roles: ("Owner") \'\n
+ //+ \'AND validation_state: ("draft", "released_alive", "shared_alive", "published_alive") \',\n
+ limit: [0, 1234567890]\n
+ },\n
+ use_remote_post: false,\n
+ conflict_handling: 2,\n
+ check_local_modification: true,\n
+ check_local_creation: true,\n
+ check_local_deletion: true,\n
+ check_remote_modification: true,\n
+ check_remote_creation: true,\n
+ check_remote_deletion: true,\n
+ local_sub_storage: {\n
+ type: "query",\n
+ sub_storage: {\n
+ type: "uuid",\n
+ sub_storage: {\n
+ type: "indexeddb",\n
+ database: "officejs-dav"\n
+ }\n
+ }\n
+ },\n
+ remote_sub_storage: {\n
+ type: "query",\n
+ sub_storage: {\n
+ type: "drivetojiomapping",\n
+ sub_storage: {\n
+ type: "dropbox",\n
+ access_token : gadget.props.element.querySelector("input[name=\'dropbox_token\']").value,\n
+ root: "dropbox"\n
+ }\n
+ }\n
+ }\n
+ };\n
+ return gadget.setSetting(\'jio_storage_description\', configuration)\n
+ .push(function () {\n
+ return gadget.setSetting(\'jio_storage_name\', "Dropbox");\n
+ })\n
+ .push(function () {\n
+ return gadget.reload();\n
+ });\n
+ }\n
+\n
+ var gadget_klass = rJS(window);\n
+\n
+ gadget_klass\n
+ .ready(function (g) {\n
+ g.props = {};\n
+ return g.getElement()\n
+ .push(function (element) {\n
+ g.props.element = element;\n
+ g.props.deferred = RSVP.defer();\n
+ return g.getSetting(\'jio_storage_name\');\n
+ })\n
+ .push(function (jio_storage_name) {\n
+ if (jio_storage_name === "Dropbox") {\n
+ return g.getSetting(\'jio_storage_description\');\n
+ }\n
+ });\n
+ })\n
+ .declareAcquiredMethod("updateHeader", "updateHeader")\n
+ .declareAcquiredMethod("redirect", "redirect")\n
+ .declareAcquiredMethod("reload", "reload")\n
+ .declareAcquiredMethod("getSetting", "getSetting")\n
+ .declareAcquiredMethod("setSetting", "setSetting")\n
+ .declareMethod("render", function () {\n
+ var gadget = this;\n
+ return gadget.updateHeader({\n
+ title: "Connect To Dropbox Storage",\n
+ back_url: "#page=jio_configurator",\n
+ panel_action: false\n
+ }).push(function () {\n
+ return gadget.props.deferred.resolve();\n
+ });\n
+ })\n
+\n
+ /////////////////////////////////////////\n
+ // Form submit\n
+ /////////////////////////////////////////\n
+ .declareService(function () {\n
+ var gadget = this;\n
+\n
+ return new RSVP.Queue()\n
+ .push(function () {\n
+ return gadget.props.deferred.promise;\n
+ })\n
+ .push(function () {\n
+ return loopEventListener(\n
+ gadget.props.element.querySelector(\'form\'),\n
+ \'submit\',\n
+ true,\n
+ function () {\n
+ return setjIODropboxConfiguration(gadget);\n
+ }\n
+ );\n
+ });\n
+ });\n
+\n
+\n
+}(window, rJS, RSVP));
+
+ -
+ title
+ OfficeJS jIO Dropbox Configurator Page JS
+
+ -
+ version
+
+
+
+
+ -
+ workflow_history
+
+ AAAAAAAAAAI=
+
+
+
+
+
+
+
+
+
+
+
+ -
+ data
+
+
+
-
+ document_publication_workflow
+
+ AAAAAAAAAAM=
+
+
+ -
+ edit_workflow
+
+ AAAAAAAAAAQ=
+
+
+ -
+ processing_status_workflow
+
+ AAAAAAAAAAU=
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+ action
+ publish_alive
+
+ -
+ actor
+ lucas_parsy
+
+ -
+ comment
+
+
+ -
+ error_message
+
+
+ -
+ time
+
+
+
+
+ -
+ validation_state
+ published_alive
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+ action
+ edit
+
+ -
+ actor
+ zope
+
+ -
+ comment
+
+
+
+
+ -
+ error_message
+
+
+ -
+ serial
+ 949.20661.60975.48759
+
+ -
+ state
+ current
+
+ -
+ time
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+ action
+ detect_converted_file
+
+ -
+ actor
+ zope
+
+ -
+ comment
+
+
+ -
+ error_message
+
+
+ -
+ external_processing_state
+ converted
+
+ -
+ serial
+ 0.0.0.0
+
+ -
+ time
+
+
+
+
+
+
+
+
+
+