summaryrefslogtreecommitdiff
path: root/addons/auth_openid/controllers
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2012-02-10 11:35:11 +0100
committerXavier Morel <xmo@openerp.com>2012-02-10 11:35:11 +0100
commitb9fbf248aa9ddf027f6a7d7e5daa5d1efc08aa75 (patch)
treee4f2d5ab4e7da1e659861bd017d7ad2c4157935a /addons/auth_openid/controllers
parentaf8864d571bdaf0b87a63ca6fa0a4fb5ea5c36f0 (diff)
[FIX] auth_openid, edi: fix web imports to correctly handle conflicts with e.g. web.py
bzr revid: xmo@openerp.com-20120210103511-ak08gis9h35j8pe2
Diffstat (limited to 'addons/auth_openid/controllers')
-rw-r--r--addons/auth_openid/controllers/main.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/auth_openid/controllers/main.py b/addons/auth_openid/controllers/main.py
index c95189b7736..af30566a643 100644
--- a/addons/auth_openid/controllers/main.py
+++ b/addons/auth_openid/controllers/main.py
@@ -28,7 +28,10 @@ import werkzeug.urls
import werkzeug.exceptions
from openerp.modules.registry import RegistryManager
-import web.common.http as openerpweb
+try:
+ import openerp.addons.web.common.http as openerpweb
+except ImportError:
+ import web.common.http as openerpweb
from openid import oidutil
from openid.store import memstore