diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2011-09-30 15:07:29 +0200 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2011-09-30 15:07:29 +0200 |
| commit | d364df65ce2f17524643e4ab1518e80f8ec3b024 (patch) | |
| tree | e4418180e43fd9af8da8bb0d3c1099edf74d9f23 /addons/web/common/dispatch.py | |
| parent | c3a93308380785b63f4d458e7b0845b1ec91b30e (diff) | |
[fix] lot of potential problems when we change something in the code due to the pickled session containing the config
bzr revid: nicolas.vanhoren@openerp.com-20110930130729-yfys0tklsujgm3ti
Diffstat (limited to 'addons/web/common/dispatch.py')
| -rw-r--r-- | addons/web/common/dispatch.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/common/dispatch.py b/addons/web/common/dispatch.py index 57e45fa594e..fdcdb92118b 100644 --- a/addons/web/common/dispatch.py +++ b/addons/web/common/dispatch.py @@ -98,7 +98,8 @@ class WebRequest(object): self.params = dict(params) # OpenERP session setup self.session_id = self.params.pop("session_id", None) or uuid.uuid4().hex - self.session = self.httpsession.setdefault(self.session_id, session.OpenERPSession(self.config)) + self.session = self.httpsession.setdefault(self.session_id, session.OpenERPSession()) + self.session.config = self.config self.context = self.params.pop('context', None) self.debug = self.params.pop('debug', False) != False |
