From 807bded8a3918b9d5de881f8859265bfea90c1ce Mon Sep 17 00:00:00 2001 From: Sapan Bhatia Date: Tue, 7 Jul 2009 20:15:07 +0000 Subject: [PATCH] injecting ZSI library. this should annoy people --- sfa/util/newgeniclient.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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) # ------------------------------------------------------------------------- -- 2.47.0