def __call__(self, *args, **kwargs): new_args = controller.get_host()._dumps(list(args)) result = self.__send(self.__name, new_args, kwargs) if result != None: return controller.get_host()._loads(result) else: return result
def wrap_ref_d(*args): args[1][RESULT] = controller.get_host()._dumps(args[1][RESULT]) return f(*args)
def wrap_ref_l(*args): args[0][PARAMS] = controller.get_host()._loads(args[0][PARAMS]) return f(*args)