diff options
| author | Xavier Morel <xmo@openerp.com> | 2011-10-03 10:41:50 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2011-10-03 10:41:50 +0200 |
| commit | 013e01a52b940559f73f98a15bbaf8eb5f4bcd12 (patch) | |
| tree | 00c740f061e51cf3c17cc229e5c27012e384d5a5 /addons/web | |
| parent | 94b28a9f9ba6666a5d01ceaa2011ebc53957e8af (diff) | |
[FIX] al hacks
bzr revid: xmo@openerp.com-20111003084150-oz87j979djfng6xb
Diffstat (limited to 'addons/web')
| -rw-r--r-- | addons/web/common/dispatch.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/addons/web/common/dispatch.py b/addons/web/common/dispatch.py index 245624f2299..cb998caf891 100644 --- a/addons/web/common/dispatch.py +++ b/addons/web/common/dispatch.py @@ -3,6 +3,7 @@ from __future__ import with_statement import functools import logging +import urllib import os import pprint import sys @@ -309,7 +310,7 @@ class Root(object): by the server, will be filtered by this pattern """ def __init__(self, options): - self.root = '/web/webclient/home?debug=1' + self.root = '/web/webclient/home' self.config = options if self.config.backend == 'local': @@ -348,7 +349,9 @@ class Root(object): request.parameter_storage_class = werkzeug.datastructures.ImmutableDict if request.path == '/': - return werkzeug.utils.redirect(self.root, 301)(environ, start_response) + params = urllib.urlencode(dict(request.args, debug='')) + return werkzeug.utils.redirect(self.root + '?' + params, 301)( + environ, start_response) elif request.path == '/mobile': return werkzeug.utils.redirect( '/web_mobile/static/src/web_mobile.html', 301)(environ, start_response) |
