X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=blobdiff_plain;f=sfa%2Fserver%2Fxmlrpcapi.py;h=51893285a2e69018256ae69500a7557de869e6f7;hp=9b1e1b8c7321db1f1e4341cd3138d44ce85ccce0;hb=fd395e1944dcd49f10a4d5b27ce4983ad389fb96;hpb=00440a7c7e509301cb49db90ff15abc0f479aaf3 diff --git a/sfa/server/xmlrpcapi.py b/sfa/server/xmlrpcapi.py index 9b1e1b8c..51893285 100644 --- a/sfa/server/xmlrpcapi.py +++ b/sfa/server/xmlrpcapi.py @@ -92,7 +92,7 @@ xmlrpc_client.Marshaller._Marshaller__dump = xmlrpclib_dump class XmlrpcApi: """ - The XmlrpcApi class implements a basic xmlrpc (or soap) service + The XmlrpcApi class implements a basic xmlrpc (or soap) service """ protocol = None @@ -107,8 +107,6 @@ class XmlrpcApi: methods, fromlist=[methods]) self.methods = methods_module.all - self.logger = logger - def callable(self, method): """ Return a new instance of the specified method. @@ -125,7 +123,7 @@ class XmlrpcApi: callablemethod = getattr(module, classname)(self) return getattr(module, classname)(self) except (ImportError, AttributeError): - self.logger.log_exc("Error importing method: %s" % method) + logger.log_exc("Error importing method: %s" % method) raise SfaInvalidAPIMethod(method) def call(self, source, method, *args): @@ -167,9 +165,9 @@ class XmlrpcApi: result = self.call(source, method, *args) except SfaFault as fault: result = fault - self.logger.log_exc("XmlrpcApi.handle has caught Exception") + logger.log_exc("XmlrpcApi.handle has caught Exception") except Exception as fault: - self.logger.log_exc("XmlrpcApi.handle has caught Exception") + logger.log_exc("XmlrpcApi.handle has caught Exception") result = SfaAPIError(fault) # Return result