From: Sapan Bhatia Date: Tue, 7 Jul 2009 20:15:07 +0000 (+0000) Subject: injecting ZSI library. this should annoy people X-Git-Tag: sfa-0.9-0@14641~126 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=807bded8a3918b9d5de881f8859265bfea90c1ce;p=sfa.git injecting ZSI library. this should annoy people --- diff --git a/sfa/util/newgeniclient.py b/sfa/util/newgeniclient.py index 458323a4..7e41155a 100644 --- a/sfa/util/newgeniclient.py +++ b/sfa/util/newgeniclient.py @@ -32,19 +32,19 @@ class GeniClient: # @param key_file = private key file of client # @param cert_file = x.509 cert containing the client's public key. This # could be a GID certificate, or any x.509 cert. - # @param protocol The ORPC protocol to use. Can be "soapprotocol" or "xmlrpcprotocol" + # @param protocol The ORPC protocol to use. Can be "soap" or "xmlrpc" - def __init__(self, url, key_file, cert_file, protocol="xmlrpcprotocol"): + def __init__(self, url, key_file, cert_file, protocol="xmlrpc"): self.url = url self.key_file = key_file self.cert_file = cert_file - if (protocol=="xmlrpcprotocol"): + if (protocol=="xmlrpc"): self.server = xmlrpcprotocol.get_server(self.url, self.key_file, self.cert_file) - elif (protocol=="soapprotocol"): + elif (protocol=="soap"): self.server = soapprotocol.get_server(self.url, self.key_file, self.cert_file) else: - raise Exception("Attempted use of undefined protocol"%protocol) + raise Exception("Attempted use of undefined protocol %s"%protocol) # -------------------------------------------------------------------------