示例#1
0
def server_index():
    ary = Server.all()
    return jsonarify(ary)
示例#2
0
文件: api.py 项目: zeha/pdnscontrol
def server_index():
    ary = Server.all()
    return jsonarify(ary)
示例#3
0
def users_list():
    ary = User.all()
    return jsonarify(ary)
示例#4
0
def server_index():
    ary = [remove_passwords_if_ineligible(obj) for obj in Server.all()]
    return jsonarify(ary)
示例#5
0
def server_config(server):
    ary = call_server(server, '/api/v1/servers/localhost/config', method='GET')
    if not eligible_for_passwords():
        ary = [obj for obj in ary if not is_config_password(obj['name'])]
    return jsonarify(ary)
示例#6
0
def users_list():
    ary = User.all()
    return jsonarify(ary)
示例#7
0
def server_config(server):
    ary = call_server(server, '/api/v1/servers/localhost/config', method='GET')
    if not eligible_for_passwords():
        ary = [obj for obj in ary if not is_config_password(obj['name'])]
    return jsonarify(ary)
示例#8
0
def server_index():
    ary = [remove_passwords_if_ineligible(obj) for obj in Server.all()]
    return jsonarify(ary)