wip
bzr revid: nicolas.vanhoren@openerp.com-20130116145512-as5ae4pmi0rxk7z2
This commit is contained in:
@@ -38,13 +38,16 @@ define(["nova", "jquery", "underscore"], function(nova, $, _) {
|
||||
});
|
||||
};
|
||||
|
||||
var JsonRPCConnector = nova.Class.$extend({
|
||||
__init__: function(url) {
|
||||
this.url = url + "/jsonrpc";
|
||||
},
|
||||
var Connector = nova.Class.$extend({
|
||||
getService: function(serviceName) {
|
||||
return new Service(this, serviceName);
|
||||
},
|
||||
});
|
||||
|
||||
var JsonRPCConnector = Connector.$extend({
|
||||
__init__: function(url) {
|
||||
this.url = url + "/jsonrpc";
|
||||
},
|
||||
send: function(serviceName, method, args) {
|
||||
return jsonRpc(this.url, "call", {"service": serviceName, "method": method, "args": args});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user