def __call__(self, *args, **kwargs):
        """
        Method is being called
        """
        # Forge the request
        if args:
            args = [jabsorb.to_jabsorb(arg) for arg in args]
        elif kwargs:
            kwargs = {key: jabsorb.to_jabsorb(value)
                      for key, value in kwargs.items()}

        request = jsonrpclib.dumps(args or kwargs,
                                   self.__name, encoding='utf-8')

        # Send it
        reply_message = self.__send(self.__peer, self.__subject, request)

        # Parse the reply and check for errors
        result = jabsorb.from_jabsorb(jsonrpclib.loads(reply_message.content))
        jsonrpclib.jsonrpc.check_for_errors(result)
        return result['result']
def __call__ ( self , * args , ** kwargs ) : if args : args = [ jabsorb . to_jabsorb ( arg ) for arg in args ] elif kwargs : kwargs = { key : jabsorb . to_jabsorb ( value ) for key , value in kwargs . items ( ) } request = jsonrpclib . dumps ( args or kwargs , self . __name , encoding = 'utf-8' ) reply_message = self . __send ( self . __peer , self . __subject , request ) result = jabsorb . from_jabsorb ( jsonrpclib . loads ( reply_message . content ) ) jsonrpclib . jsonrpc . check_for_errors ( result ) return result [ 'result' ]
Method is being called