Commit 68170b7b authored by Roque's avatar Roque

erp5_officejs: clean up after test fix

parent c795940d
...@@ -229,7 +229,6 @@ gadget_officejs_discussion_tool_router.html\n ...@@ -229,7 +229,6 @@ gadget_officejs_discussion_tool_router.html\n
/\n /\n
app/\n app/\n
gadget_officejs_discussion_tool.configuration\n gadget_officejs_discussion_tool.configuration\n
#app/gadget_officejs_discussion_tool.configuration\n
gadget_officejs_discussion_tool.json\n gadget_officejs_discussion_tool.json\n
gadget_officejs_bootloader.js\n gadget_officejs_bootloader.js\n
gadget_officejs_bootloader_presentation.html\n gadget_officejs_bootloader_presentation.html\n
...@@ -734,7 +733,7 @@ NETWORK:\n ...@@ -734,7 +733,7 @@ NETWORK:\n
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>974.30099.13229.45585</string> </value> <value> <string>974.31239.34087.42410</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -752,7 +751,7 @@ NETWORK:\n ...@@ -752,7 +751,7 @@ NETWORK:\n
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1553084611.2</float> <float>1553089034.71</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -10,8 +10,6 @@ ...@@ -10,8 +10,6 @@
this._take_installer = spec.take_installer || false; this._take_installer = spec.take_installer || false;
this._origin_url = spec.origin_url !== undefined ? this._origin_url = spec.origin_url !== undefined ?
spec.origin_url : window.location.href; spec.origin_url : window.location.href;
console.log("[DEBUG] APPCACHESTORAGE window.location.href:");
console.log(window.location.href);
this._version = spec.version || ""; this._version = spec.version || "";
this._prefix = spec.prefix || "./"; this._prefix = spec.prefix || "./";
this._documents = {}; this._documents = {};
...@@ -50,7 +48,6 @@ ...@@ -50,7 +48,6 @@
AppCacheStorage.prototype.getAttachment = function (origin_url, AppCacheStorage.prototype.getAttachment = function (origin_url,
relative_url) { relative_url) {
console.log("[DEBUG] APPCACHESTORAGE: getAttachment for" + relative_url);
return new RSVP.Queue() return new RSVP.Queue()
.push(function () { .push(function () {
return jIO.util.ajax({ return jIO.util.ajax({
...@@ -65,11 +62,6 @@ ...@@ -65,11 +62,6 @@
}; };
AppCacheStorage.prototype.allAttachments = function (id) { AppCacheStorage.prototype.allAttachments = function (id) {
console.log("[DEBUG] APPCACHESTORAGE allAttachments");
console.log("[DEBUG] APPCACHESTORAGE this._origin_url");
console.log(this._origin_url);
console.log("[DEBUG] APPCACHESTORAGE parameter id");
console.log(id);
if (id === this._origin_url) { if (id === this._origin_url) {
var result = {}, i, len = this._relative_url_list.length; var result = {}, i, len = this._relative_url_list.length;
for (i = 0; i < len; i += 1) { for (i = 0; i < len; i += 1) {
...@@ -95,21 +87,17 @@ ...@@ -95,21 +87,17 @@
}; };
AppCacheStorage.prototype.repair = function () { AppCacheStorage.prototype.repair = function () {
console.log("[DEBUG] APPCACHESTORAGE repair");
var storage = this, url = ""; var storage = this, url = "";
return new RSVP.Queue() return new RSVP.Queue()
.push(function () { .push(function () {
url = new URL(storage._manifest, new URL(storage._version, url = new URL(storage._manifest, new URL(storage._version,
storage._origin_url)) storage._origin_url));
console.log("[DEBUG] APPCACHESTORAGE JIO.util.ajax to url: " + url);
return jIO.util.ajax({ return jIO.util.ajax({
type: "GET", type: "GET",
url: url url: url
}); });
}) })
.push(function (response) { .push(function (response) {
console.log("[DEBUG] APPCACHESTORAGE ajax response:");
console.log(response);
var text = response.target.responseText, var text = response.target.responseText,
relative_url_list = text.split('\n'), relative_url_list = text.split('\n'),
i, i,
...@@ -133,21 +121,10 @@ ...@@ -133,21 +121,10 @@
take = true; take = true;
} }
} }
console.log("[DEBUG] APPCACHESTORAGE end url-iteration. storage._relative_url_list:");
console.log(storage._relative_url_list);
}) })
.push(undefined, function (error) { .push(undefined, function (error) {
if (!error.message) { if (!error.message) {
console.log("error getting the manifest:"); error.message = "Can't get manifest. URL: " + url;
console.log(error);
var info = " . ";
if (error.currentTarget) {
info += "status: " + error.currentTarget.status;
info += " . response: " + error.currentTarget.response;
} else {
info += "error.currentTarget: " + error.currentTarget;
}
error.message = "Can't get manifest. URL: " + url + info;
} }
throw error; throw error;
}); });
......
...@@ -237,7 +237,7 @@ ...@@ -237,7 +237,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>974.31277.33067.51916</string> </value> <value> <string>974.31314.47298.63044</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -255,7 +255,7 @@ ...@@ -255,7 +255,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1553086893.39</float> <float>1553089133.43</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -75,7 +75,6 @@ ...@@ -75,7 +75,6 @@
.declareMethod('createJio', function (jio_options) { .declareMethod('createJio', function (jio_options) {
var gadget = this, var gadget = this,
//origin_url = window.location.protocol + "//" + window.location.hostname + window.location.pathname,
origin_url = window.location.href, origin_url = window.location.href,
prefix = "./", prefix = "./",
hateoas_script = "hateoas/ERP5Document_getHateoas", hateoas_script = "hateoas/ERP5Document_getHateoas",
...@@ -104,16 +103,11 @@ ...@@ -104,16 +103,11 @@
local_sub_storage: {}, local_sub_storage: {},
remote_sub_storage: { remote_sub_storage: {
type: "appcache", type: "appcache",
manifest: manifest/*, manifest: manifest
origin_url: origin_url*/
} }
}, appcache_storage, }, appcache_storage,
sync_flag = "appcache-stored", sync_flag = "appcache-stored",
configuration_ids_dict = {}; configuration_ids_dict = {};
console.log("[DEBUG] JIO GADGET window.location.href:");
console.log(window.location.href);
console.log("[DEBUG] JIO GADGET generated origin_url:");
console.log(origin_url);
if (jio_options === undefined) { if (jio_options === undefined) {
return; return;
} }
......
...@@ -252,7 +252,7 @@ ...@@ -252,7 +252,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1553086979.81</float> <float>1553089225.04</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