zeronimo/application.py
def rpc(f=None, **kwargs):
    """Marks a method as RPC."""
    if f is not None:
        if isinstance(f, six.string_types):
            if 'name' in kwargs:
                raise ValueError('name option duplicated')
            kwargs['name'] = f
        else:
            return rpc(**kwargs)(f)
    return functools.partial(_rpc, **kwargs)
def rpc(f=None, **kwargs):
    """Marks a method as RPC."""
    if f is not None:
        if isinstance(f, six.string_types):
            if 'name' in kwargs:
                raise ValueError('name option duplicated')
            kwargs['name'] = f
        else:
            return rpc(**kwargs)(f)
    return functools.partial(_rpc, **kwargs)
def rpc ( f = None , * * kwargs ) : if f is not None : if isinstance ( f , six . string_types ) : if 'name' in kwargs : raise ValueError ( 'name option duplicated' ) kwargs [ 'name' ] = f else : return rpc ( * * kwargs ) ( f ) return functools . partial ( _rpc , * * kwargs )
Marks a method as RPC.
Marks a method as RPC .