示例#1
0
def show_change_setting(album, setting, value):
    show = Show(album, current_app.config, session)
    try:
        show.change_setting(setting, value).save()
    except:
        return jsonify(result="Failed")
    return jsonify(result="OK")
示例#2
0
def show_change_setting(album, setting, value):
    show = Show(album, current_app.config, session)
    try:
        show.change_setting(setting, value).save()
    except:
        return jsonify(result='Failed')
    return jsonify(result='OK')
示例#3
0
def show_change_setting(album, setting, value):
    show = Show(album)
    if (show.change_setting(setting, value) and show.save()):
        return jsonify(result='OK')
    else:
        return jsonify(result='Failed')