Commit 8569c867 authored by Sebastien Robin's avatar Sebastien Robin

rename applicationname to application_name

parent d7efabc2
...@@ -224,7 +224,7 @@ ...@@ -224,7 +224,7 @@
// so {type:'dummyall3tries',a:'b'} differs from // so {type:'dummyall3tries',a:'b'} differs from
// {type:'dummyall3tries',c:'d'}. // {type:'dummyall3tries',c:'d'}.
that.specToStore = function () { that.specToStore = function () {
return {"applicationname": spec.applicationname}; return {"application_name": spec.application_name};
}; };
priv.doJob = function (command,if_ok_return) { priv.doJob = function (command,if_ok_return) {
......
...@@ -23,8 +23,8 @@ var newDAVStorage = function ( spec, my ) { ...@@ -23,8 +23,8 @@ var newDAVStorage = function ( spec, my ) {
priv.username = spec.username || ''; priv.username = spec.username || '';
priv.secured_username = priv.convertSlashes(priv.username); priv.secured_username = priv.convertSlashes(priv.username);
priv.applicationname = spec.applicationname || 'untitled'; priv.application_name = spec.application_name || 'untitled';
priv.secured_applicationname = priv.convertSlashes(priv.applicationname); priv.secured_application_name = priv.convertSlashes(priv.application_name);
priv.url = spec.url || ''; priv.url = spec.url || '';
priv.password = spec.password || ''; // TODO : is it secured ? priv.password = spec.password || ''; // TODO : is it secured ?
...@@ -32,7 +32,7 @@ var newDAVStorage = function ( spec, my ) { ...@@ -32,7 +32,7 @@ var newDAVStorage = function ( spec, my ) {
that.serialized = function() { that.serialized = function() {
var o = super_serialized(); var o = super_serialized();
o.username = priv.username; o.username = priv.username;
o.applicationname = priv.applicationname; o.application_name = priv.application_name;
o.url = priv.url; o.url = priv.url;
o.password = priv.password; // TODO : not realy secured... o.password = priv.password; // TODO : not realy secured...
return o; return o;
...@@ -82,7 +82,7 @@ var newDAVStorage = function ( spec, my ) { ...@@ -82,7 +82,7 @@ var newDAVStorage = function ( spec, my ) {
$.ajax ( { $.ajax ( {
url: priv.url + '/' + url: priv.url + '/' +
priv.secured_username + '/' + priv.secured_username + '/' +
priv.secured_applicationname + '/' + priv.secured_application_name + '/' +
secured_docid + '?_=' + Date.now(), // to make url unique! secured_docid + '?_=' + Date.now(), // to make url unique!
// and avoid chrome PUT on cache ! // and avoid chrome PUT on cache !
type: type, type: type,
...@@ -127,7 +127,7 @@ var newDAVStorage = function ( spec, my ) { ...@@ -127,7 +127,7 @@ var newDAVStorage = function ( spec, my ) {
$.ajax ( { $.ajax ( {
url: priv.url + '/' + url: priv.url + '/' +
priv.secured_username + '/' + priv.secured_username + '/' +
priv.secured_applicationname + '/' + priv.secured_application_name + '/' +
secured_docid + '?_=' + Date.now(), secured_docid + '?_=' + Date.now(),
type: "GET", type: "GET",
async: true, async: true,
...@@ -163,7 +163,7 @@ var newDAVStorage = function ( spec, my ) { ...@@ -163,7 +163,7 @@ var newDAVStorage = function ( spec, my ) {
$.ajax ( { $.ajax ( {
url: priv.url + '/' + url: priv.url + '/' +
priv.secured_username + '/' + priv.secured_username + '/' +
priv.secured_applicationname + '/' + priv.secured_application_name + '/' +
secured_docid + '?_=' + Date.now(), secured_docid + '?_=' + Date.now(),
type: "PROPFIND", type: "PROPFIND",
async: true, async: true,
...@@ -217,7 +217,7 @@ var newDAVStorage = function ( spec, my ) { ...@@ -217,7 +217,7 @@ var newDAVStorage = function ( spec, my ) {
$.ajax ( { $.ajax ( {
url: priv.url + '/' + url: priv.url + '/' +
priv.secured_username + '/' + priv.secured_username + '/' +
priv.secured_applicationname + '/' + priv.secured_application_name + '/' +
priv.secureDocId(file.id) + '?_=' + Date.now(), priv.secureDocId(file.id) + '?_=' + Date.now(),
type: "GET", type: "GET",
async: true, async: true,
...@@ -245,7 +245,7 @@ var newDAVStorage = function ( spec, my ) { ...@@ -245,7 +245,7 @@ var newDAVStorage = function ( spec, my ) {
$.ajax ( { $.ajax ( {
url: priv.url + '/' + url: priv.url + '/' +
priv.secured_username + '/' + priv.secured_username + '/' +
priv.secured_applicationname + '/' + '?_=' + Date.now(), priv.secured_application_name + '/' + '?_=' + Date.now(),
async: true, async: true,
type: 'PROPFIND', type: 'PROPFIND',
dataType: 'xml', dataType: 'xml',
...@@ -341,7 +341,7 @@ var newDAVStorage = function ( spec, my ) { ...@@ -341,7 +341,7 @@ var newDAVStorage = function ( spec, my ) {
$.ajax ( { $.ajax ( {
url: priv.url + '/' + url: priv.url + '/' +
priv.secured_username + '/' + priv.secured_username + '/' +
priv.secured_applicationname + '/' + priv.secured_application_name + '/' +
secured_docid + '?_=' + Date.now(), secured_docid + '?_=' + Date.now(),
type: "DELETE", type: "DELETE",
async: true, async: true,
......
...@@ -28,10 +28,10 @@ var newLocalStorage = function (spec, my) { ...@@ -28,10 +28,10 @@ var newLocalStorage = function (spec, my) {
// attributes // attributes
priv.username = spec.username || ''; priv.username = spec.username || '';
priv.applicationname = spec.applicationname || 'untitled'; priv.application_name = spec.application_name || 'untitled';
priv.localpath = 'jio/localstorage/' + priv.localpath = 'jio/localstorage/' +
priv.username + '/' + priv.applicationname; priv.username + '/' + priv.application_name;
// ==================== Tools ==================== // ==================== Tools ====================
/** /**
...@@ -75,7 +75,7 @@ var newLocalStorage = function (spec, my) { ...@@ -75,7 +75,7 @@ var newLocalStorage = function (spec, my) {
// ===================== overrides ====================== // ===================== overrides ======================
that.specToStore = function () { that.specToStore = function () {
return { return {
"applicationname": priv.applicationname, "application_name": priv.application_name,
"username": priv.username "username": priv.username
}; };
}; };
......
...@@ -15,7 +15,7 @@ var jioNamespace = (function(spec) { ...@@ -15,7 +15,7 @@ var jioNamespace = (function(spec) {
* - {object} spec.storage: A storage description * - {object} spec.storage: A storage description
* - {string} spec.storage.type: The storage type * - {string} spec.storage.type: The storage type
* - {string} spec.storage.username: The user name * - {string} spec.storage.username: The user name
* - {string} spec.storage.applicationname: The application name * - {string} spec.storage.application_name: The application name
* @return {object} The new Jio instance. * @return {object} The new Jio instance.
*/ */
Object.defineProperty(that,"newJio",{ Object.defineProperty(that,"newJio",{
......
This diff is collapsed.
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