def decorator(func): if coroutine: func = kaa.coroutine()(func) nodename = name if nodename is None: nodename = func.func_name if nodename.startswith('_handle_'): nodename = nodename[8:] if nodename.startswith('_'): nodename = nodename[1:] setattr(func, identifier, (nodename, xmlns)) return func
def decorator(func): if coroutine: func = kaa.coroutine()(func) func._kaa_rpc = command or func.func_name func._kaa_rpc_param = ( add_client, ) return func
def decorator(func): if coroutine: func = kaa.coroutine()(func) func._kaa_rpc = command or func.func_name func._kaa_rpc_param = (add_client, ) return func