summaryrefslogtreecommitdiff
path: root/addons/web/common/dispatch.py
diff options
context:
space:
mode:
authorAntony Lesuisse <al@openerp.com>2011-10-01 19:59:24 +0200
committerAntony Lesuisse <al@openerp.com>2011-10-01 19:59:24 +0200
commit3a12aa8d7c6a22b6bf8431209bcd1dfec7b9a791 (patch)
treef0c408018f1ee1700824e34ff07da284d94ac7d2 /addons/web/common/dispatch.py
parentfb9defcfff08f0367b9f67e9559a6de4d77a264e (diff)
[FIX] dont use werkzeug.urls not available in 0.5 (lucid)
bzr revid: al@openerp.com-20111001175924-s1rk41xx2i22plax
Diffstat (limited to 'addons/web/common/dispatch.py')
-rw-r--r--addons/web/common/dispatch.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/addons/web/common/dispatch.py b/addons/web/common/dispatch.py
index fdcdb92118b..245624f2299 100644
--- a/addons/web/common/dispatch.py
+++ b/addons/web/common/dispatch.py
@@ -13,7 +13,6 @@ import xmlrpclib
import simplejson
import werkzeug.datastructures
import werkzeug.exceptions
-import werkzeug.urls
import werkzeug.utils
import werkzeug.wrappers
import werkzeug.wsgi
@@ -310,9 +309,9 @@ class Root(object):
by the server, will be filtered by this pattern
"""
def __init__(self, options):
- self.root = werkzeug.urls.Href('/web/webclient/home')
+ self.root = '/web/webclient/home?debug=1'
self.config = options
-
+
if self.config.backend == 'local':
conn = openerplib.get_connector(protocol='local')
else:
@@ -349,13 +348,10 @@ class Root(object):
request.parameter_storage_class = werkzeug.datastructures.ImmutableDict
if request.path == '/':
- return werkzeug.utils.redirect(
- self.root(dict(request.args, debug='')), 301)(
- environ, start_response)
+ return werkzeug.utils.redirect(self.root, 301)(environ, start_response)
elif request.path == '/mobile':
return werkzeug.utils.redirect(
- '/web_mobile/static/src/web_mobile.html', 301)(
- environ, start_response)
+ '/web_mobile/static/src/web_mobile.html', 301)(environ, start_response)
handler = self.find_handler(*(request.path.split('/')[1:]))