Esempio n. 1
0
File: parser.py Progetto: clones/kaa
 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
Esempio n. 2
0
 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
Esempio n. 3
0
 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