projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de3bc67
)
[IMP] Added method to make the client lib work with jsonrpc.
author
niv-openerp
<nicolas.vanhoren@openerp.com>
Tue, 15 Jan 2013 10:44:23 +0000
(11:44 +0100)
committer
niv-openerp
<nicolas.vanhoren@openerp.com>
Tue, 15 Jan 2013 10:44:23 +0000
(11:44 +0100)
bzr revid: nicolas.vanhoren@openerp.com-
20130115104423
-mb8f2ec3o1jhz8ut
addons/web/controllers/main.py
patch
|
blob
|
history
diff --git
a/addons/web/controllers/main.py
b/addons/web/controllers/main.py
index
1d5cfab
..
d5f5f89
100644
(file)
--- a/
addons/web/controllers/main.py
+++ b/
addons/web/controllers/main.py
@@
-549,6
+549,11
@@
class Home(openerpweb.Controller):
def login(self, req, db, login, key):
return login_and_redirect(req, db, login, key)
+ @openerpweb.jsonrequest
+ def jsonrpc(self, req, service, method, args):
+ """ Method used by client APIs to contact OpenERP. """
+ return getattr(req.session.proxy(service), method)(*args)
+
class WebClient(openerpweb.Controller):
_cp_path = "/web/webclient"