Commit 20e2156e authored by Tristan Cavelier's avatar Tristan Cavelier

jslint s3 files

parent 59b36505
......@@ -206,7 +206,6 @@
* @class MultiSplitStorage
*/
function MultiSplitStorage(spec) {
console.info('mutli creation');
var that = this, priv = {};
/**
......@@ -310,7 +309,7 @@
//re-init
i = 0;
};
}
/**
* Split document metadata then store them to the sub storages.
......@@ -322,7 +321,6 @@
* @param {String} method The command method ('post' or 'put')
*/
priv.postOrPut = function (command, doc, option, method) {
console.log("multi post or put");
var i, data, doc_list = [], doc_underscores = {};
for (i in doc) {
if (doc.hasOwnProperty(i)) {
......@@ -359,7 +357,6 @@
delete err.index;
return command.error(err);
}
console.log("post or put succes", doc_underscores._id);
command.success({"id": doc_underscores._id});
});
};
......@@ -579,7 +576,6 @@
}
);
};
console.info('mutli created');
} // end of MultiplitStorage
jIO.addStorage('multisplit', MultiSplitStorage);
......
......@@ -19,7 +19,6 @@
jIO.addStorage("s3", function (spec) {
console.info('S3 creation');
var that, priv = {}, lastDigest, isDelete;
that = this;
......@@ -78,6 +77,7 @@
last = false;
return '.';
}
/*jslint ass: true */
while ((el = split.shift()) !== undefined) {
last = true;
el = el.replace(/__/g, '%2595');
......@@ -510,7 +510,6 @@
function postDocument() {
var fd, Signature, xhr;
doc_id = priv.idsToFileName(doc_id);
console.log(doc_id);
//Meant to deep-serialize in order to avoid
//conflicts due to the multipart enctype
doc = JSON.stringify(doc);
......@@ -660,7 +659,6 @@
};
that.putAttachment = function (command, param) {
console.info('S3 putAttachment');
var my_document,
docId,
attachId,
......@@ -871,7 +869,6 @@
var _succ, my_document, mime;
_succ = command.success;
command.success = function () {
console.log.apply(console, arguments);
_succ.apply(this, arguments);
};
my_document = null;
......@@ -989,7 +986,6 @@
} else {
for (i; i >= 0; i -= 1) {
keyId = resultTable[i];
console.log(keyId);
allDocResponse.rows[i] = {
"id": priv.fileNameToIds(keyId)[0],
"value": {}
......@@ -1014,6 +1010,5 @@
//fin alldocs
};
console.info('S3 created');
});
}));
......@@ -16,7 +16,6 @@
'gidstorage',
's3storage',
'multisplitstorage'
], function (jIO, util, RSVP) {
"use strict";
......@@ -58,25 +57,29 @@
"password": "/YHoa5r2X6EUHfvP31jdYx6t75h81pAjIZ4Mt94y"
};
var jio_gid_description = {}, jio_gid_description2 = {};
jio_gid_description.type = jio_gid_description2.type = "gid";
jio_gid_description.constraints = jio_gid_description2.constraints = {
shared.jio_gid_description = {};
shared.jio_gid_description2 = {};
shared.jio_gid_description.type = shared.jio_gid_description2.type = "gid";
shared.jio_gid_description.constraints =
shared.jio_gid_description2.constraints = {
"default": {
"title": "string"
}
};
jio_gid_description.sub_storage = shared.s3_storage_description1;
jio_gid_description2.sub_storage = shared.s3_storage_description2;
shared.jio_gid_description.sub_storage = shared.s3_storage_description1;
shared.jio_gid_description2.sub_storage = shared.s3_storage_description2;
var jio_multisplit_description = {
shared.jio_multisplit_description = {
"type": "multisplit",
"storage_list": [
jio_gid_description,
jio_gid_description2
shared.jio_gid_description,
shared.jio_gid_description2
]
};
jio = jIO.createJIO(jio_multisplit_description, {"workspace": shared.workspace});
jio = jIO.createJIO(shared.jio_multisplit_description, {
"workspace": shared.workspace
});
jio_s3_list[0] = jIO.createJIO(shared.s3_storage_description1, {
"workspace": shared.workspace
});
......
......@@ -109,7 +109,6 @@
jio_s3_list[0] = jIO.createJIO(shared.s3_storage_description1, {
"workspace": shared.workspace
});
console.log(jio_s3_list[0])
jio_s3_list[1] = jIO.createJIO(shared.s3_storage_description2, {
"workspace": shared.workspace
});
......
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