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

rename applicationname to application_name

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