diff options
| author | Xavier Morel <xmo@openerp.com> | 2012-02-23 13:32:13 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2012-02-23 13:32:13 +0100 |
| commit | 5ac6e532bdfeef0f3bf8ad45ba8bc17183ff423c (patch) | |
| tree | 284b0681c19f964de005e746dbecccb20414f381 /addons/web/common/http.py | |
| parent | b58012f32ab31b9a1b55297de915fe2257dea655 (diff) | |
[FIX] if a connector was setup in the configuration object, don't re-set one instead
bzr revid: xmo@openerp.com-20120223123213-aftgz7h0zxkbzsju
Diffstat (limited to 'addons/web/common/http.py')
| -rw-r--r-- | addons/web/common/http.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/addons/web/common/http.py b/addons/web/common/http.py index 26807f65b69..9294808fda4 100644 --- a/addons/web/common/http.py +++ b/addons/web/common/http.py @@ -440,12 +440,12 @@ class Root(object): self.root = '/web/webclient/home' self.config = options - if self.config.backend == 'local': - conn = LocalConnector() - else: - conn = openerplib.get_connector(hostname=self.config.server_host, - port=self.config.server_port) - self.config.connector = conn + if not hasattr(self.config, 'connector'): + if self.config.backend == 'local': + self.config.connector = LocalConnector() + else: + self.config.connector = openerplib.get_connector( + hostname=self.config.server_host, port=self.config.server_port) self.session_cookie = 'sessionid' self.addons = {} |
