def run(self, func, **kwargs):
        """
        The fake run call directly contacts the server.

        @param func: The name of the remote function that is being called.

        @param kwargs: The arguments to the remotely called function.
        """
        return utils.strip_unicode(getattr(rpc_interface, func)(**kwargs))
예제 #2
0
 def run(self, call, **dargs):
     """
     Make a RPC call to the AFE server
     """
     rpc_call = getattr(self.proxy, call)
     if self.debug:
         print 'DEBUG: %s %s' % (call, dargs)
     try:
         result = utils.strip_unicode(rpc_call(**dargs))
         if self.reply_debug:
             print result
         return result
     except Exception:
         raise
예제 #3
0
 def run(self, call, **dargs):
     """
     Make a RPC call to the AFE server
     """
     rpc_call = getattr(self.proxy, call)
     if self.debug:
         print 'DEBUG: %s %s' % (call, dargs)
     try:
         result = utils.strip_unicode(rpc_call(**dargs))
         if self.reply_debug:
             print result
         return result
     except Exception:
         print 'FAILED RPC CALL: %s %s' % (call, dargs)
         raise