From ead84d301c174edbdcba25c7e5ab2748bca8f53b Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Mon, 2 May 2011 15:19:04 +0200 Subject: [PATCH] [FIX] Work-around to fix a problem in xml rpc classes that made them unusable using python 2.7. bzr revid: nicolas.vanhoren@openerp.com-20110502131904-kkzkzl6jk5jsrv7x --- openerpweb/openerpweb.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openerpweb/openerpweb.py b/openerpweb/openerpweb.py index 104394d361d..835d43ef358 100644 --- a/openerpweb/openerpweb.py +++ b/openerpweb/openerpweb.py @@ -93,7 +93,9 @@ class OpenERPSession(object): self.client_timezone = False def proxy(self, service): - s = xmlrpctimeout.TimeoutServerProxy('http://%s:%s/xmlrpc/%s' % (self._server, self._port, service), timeout=5) + # TODO: correct this bug with timeout connections not working in python 2.7 + # s = xmlrpctimeout.TimeoutServerProxy('http://%s:%s/xmlrpc/%s' % (self._server, self._port, service), timeout=5) + s = xmlrpclib.ServerProxy('http://%s:%s/xmlrpc/%s' % (self._server, self._port, service)) return s def bind(self, db, uid, password):