Exemplo n.º 1
0
def _get_with_abort(username):
    username_data = get(username)
    if username_data is None:
        log.abort("User '%s' does not exists" % username)
    return username_data
Exemplo n.º 2
0
def exists(username):
    if get(username) == None:
        return False

    return True
Exemplo n.º 3
0
def home_directory(user):
    user_data = get(user)
    if user_data is None: 
        log.abort('User does not exists')

    return user_data['home']