summaryrefslogtreecommitdiff
path: root/addons/web/common/dispatch.py
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2011-09-14 11:51:39 +0200
committerniv-openerp <nicolas.vanhoren@openerp.com>2011-09-14 11:51:39 +0200
commit655ed47c06454baf0cd0ce2fcbceec7b73706d5d (patch)
treee250075f8478f6ef18e060b3e8a2c73270a7fef3 /addons/web/common/dispatch.py
parent8eb4f30d90a013fc3930daaa380dcece25b1ba05 (diff)
[fix] problem with authentification detection
bzr revid: nicolas.vanhoren@openerp.com-20110914095139-ya200r6rc7qkxn33
Diffstat (limited to 'addons/web/common/dispatch.py')
-rw-r--r--addons/web/common/dispatch.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/common/dispatch.py b/addons/web/common/dispatch.py
index dbd9e3ac71f..afcde2edfad 100644
--- a/addons/web/common/dispatch.py
+++ b/addons/web/common/dispatch.py
@@ -23,6 +23,7 @@ import nonliterals
import http
# import backendlocal as backend
import session as backend
+import openerplib
__all__ = ['Root', 'jsonrequest', 'httprequest', 'Controller',
'WebRequest', 'JsonRequest', 'HttpRequest']
@@ -166,7 +167,7 @@ class JsonRequest(WebRequest):
_logger.debug("--> %s.%s\n%s", controller.__class__.__name__, method.__name__, pprint.pformat(self.jsonrequest))
response['id'] = self.jsonrequest.get('id')
response["result"] = method(controller, self, **self.params)
- except backend.OpenERPUnboundException:
+ except openerplib.AuthentificationError:
error = {
'code': 100,
'message': "OpenERP Session Invalid",