def __call__(self, *args, **kwargs):
        """
        Method call
        """
        # Send a request
        request = [self.__method_name]
        if args:
            request.extend(args)

        # Keyword arguments are ignores
        self.__publish(self.__uid, self, self.__topic, request)

        # Wait for an answer
        self._event.wait()

        # Act accordingly
        if self._error:
            raise RemoteServiceError(self._error)

        else:
            return self._result
def __call__ ( self , * args , ** kwargs ) : request = [ self . __method_name ] if args : request . extend ( args ) self . __publish ( self . __uid , self , self . __topic , request ) self . _event . wait ( ) if self . _error : raise RemoteServiceError ( self . _error ) else : return self . _result
Method call