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:
7a7d7fe
)
[FIX] http: set back the gen_session_id controller, because still used by openframewo...
author
Denis Ledoux
<dle@openerp.com>
Thu, 24 Apr 2014 13:55:07 +0000
(15:55 +0200)
committer
Denis Ledoux
<dle@openerp.com>
Thu, 24 Apr 2014 13:55:07 +0000
(15:55 +0200)
Related to revision 5124 revid:al@openerp.com-
20140316141311
-m0xqh386ax952va1
bzr revid: dle@openerp.com-
20140424135507
-5130yyy5brpfqd5f
openerp/http.py
patch
|
blob
|
history
diff --git
a/openerp/http.py
b/openerp/http.py
index
c9181d2
..
d70e535
100644
(file)
--- a/
openerp/http.py
+++ b/
openerp/http.py
@@
-1295,6
+1295,11
@@
class CommonController(Controller):
""" Method used by client APIs to contact OpenERP. """
return dispatch_rpc(service, method, args)
+ @route('/gen_session_id', type='json', auth="none")
+ def gen_session_id(self):
+ nsession = root.session_store.new()
+ return nsession.sid
+
# register main wsgi handler
root = Root()
openerp.service.wsgi_server.register_wsgi_handler(root)