示例#1
0
 def create_client(self,methods):
     try:
         client_class = ClientXMLRPC.generate(methods)
     except Exception as e:
         raise ProtocolErrors.ClientClassCreationError(
                 ("Client class creation exception: %s" % e),
                 e
             )
     try:
         return client_class(url = self.ip_address, port = self.port, uri = self.uri)
     except Exception as e:
         raise ProtocolErrors.ClientInstanciationError(("Unable to instanciate the XMLRPC client: %s" % e),e)
示例#2
0
 def create_client(self, methods):
     try:
         client_class = ClientXMLRPC.generate(methods)
     except Exception as e:
         raise ProtocolErrors.ClientClassCreationError(
             ("Client class creation exception: %s" % e), e)
     try:
         return client_class(url=self.ip_address,
                             port=self.port,
                             uri=self.uri)
     except Exception as e:
         raise ProtocolErrors.ClientInstanciationError(
             ("Unable to instanciate the XMLRPC client: %s" % e), e)
示例#3
0
 def test_generation(self):
     ClientXMLRPC.generate(["method1"])
 def test_generation(self):
     ClientXMLRPC.generate(['method1'])
 def test_generation(self):
     ClientXMLRPC.generate(['method1'])