[FIX] http: register the wsgi handler directly

bzr revid: chs@openerp.com-20140324093116-fuunq90t9qb5p8w5
This commit is contained in:
Christophe Simonis 2014-03-24 10:31:16 +01:00
parent fc760dd0d0
commit 58bd4d4950
1 changed files with 3 additions and 6 deletions

View File

@ -1284,10 +1284,7 @@ class CommonController(Controller):
""" Method used by client APIs to contact OpenERP. """ """ Method used by client APIs to contact OpenERP. """
return dispatch_rpc(service, method, args) return dispatch_rpc(service, method, args)
root = None # register main wsgi handler
def wsgi_postload():
global root
root = Root() root = Root()
openerp.service.wsgi_server.register_wsgi_handler(root) openerp.service.wsgi_server.register_wsgi_handler(root)