[FIX] base_report_designer: allow connection via XML-RPC over SSL (XML-RPC-Secure)

lp bug: https://launchpad.net/bugs/761784 fixed

bzr revid: chs@openerp.com-20130610104710-4phnmg7k1vbkrva8
This commit is contained in:
Christophe Simonis 2013-06-10 12:47:10 +02:00
parent 1ef68b2806
commit dd812e04ba
2 changed files with 2 additions and 2 deletions

View File

@ -61,8 +61,8 @@ class RPCSession(object):
protocol = m.group(1) protocol = m.group(1)
if not m: if not m:
return -1 return -1
if protocol == 'http://' or protocol == 'http://': if protocol == 'http://' or protocol == 'https://':
self.gateway = XMLRPCGateway(host, port, 'http') self.gateway = XMLRPCGateway(host, port, protocol[:-3])
elif protocol == 'socket://': elif protocol == 'socket://':
self.gateway = NETRPCGateway(host, port) self.gateway = NETRPCGateway(host, port)