[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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user