[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
This commit is contained in:
niv-openerp
2011-05-02 15:19:04 +02:00
parent d553615695
commit ead84d301c
+3 -1
View File
@@ -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):