(path, value)
Set value at given path.
    If path already exists, raise stolos.exceptions.NodeExistsError
Set value at given path.
    If path already exists, raise stolos.exceptions.NodeExistsError
Set value at given path . If path already exists raise stolos . exceptions . NodeExistsError
def create(path, value):
    """Set value at given path.
    If path already exists, raise stolos.exceptions.NodeExistsError
    """
    if value == '':
        value = '--STOLOSEMPTYSTRING--'
    rv = raw_client().set(path, value, nx=True)
    if not rv:
        raise stolos.exceptions.NodeExistsError(
            "Could not create path: %s" % path)
def create ( path , value ) : if value == '' : value = '--STOLOSEMPTYSTRING--' rv = raw_client ( ) . set ( path , value , nx = True ) if not rv : raise stolos . exceptions . NodeExistsError ( "Could not create path: %s" % path )