[FIX] corelib: JsonRPC was missing a get_url() method

bzr revid: fva@openerp.com-20120522155903-i2oz7qkmn8i4vtt8
This commit is contained in:
Frédéric van der Essen 2012-05-22 17:59:03 +02:00
parent 882f6dc58e
commit 64240e7b0a
2 changed files with 3 additions and 3 deletions

View File

@ -1347,6 +1347,9 @@ instance.web.JsonRPC = instance.web.CallbackEnabled.extend({
},
on_rpc_error: function(error) {
},
get_url: function (file) {
return this.prefix + file;
},
});
}

View File

@ -284,9 +284,6 @@ instance.web.Session = instance.web.JsonRPC.extend( /** @lends instance.web.Sess
}
}
},
get_url: function (file) {
return this.prefix + file;
},
/**
* Cooperative file download implementation, for ajaxy APIs.
*