--- nfo/projects/netfraggle/bin/FraggleXMLRPC.py 2004/08/27 03:27:43 1.2 +++ nfo/projects/netfraggle/bin/FraggleXMLRPC.py 2004/08/30 13:11:07 1.3 @@ -1,17 +1,20 @@ import sys -from xmlrpclib import Server -def create(parent,configList): - return FraggleXMLRPC(parent,configList) +def create(parent,rpc_config): + return FraggleXMLRPC(parent,rpc_config) class FraggleXMLRPC: - def __init_rpc_server__(self,configList): + def __init_rpc_server__(self,rpc_config): #print configList["url"] - self.rpc_server = Server(configList["url"]) + try: + self.rpc_server = Server(rpc_config["url"]) + except: + pass - def __init__(self,parent,configList): - self.__init_rpc_server__(configList) + def __init__(self,parent,rpc_config): + from xmlrpclib import Server + self.__init_rpc_server__(rpc_config) def FraggleSync(self): fragglexml = self.rpc_server.fraggleSync()