예제 #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
파일: controllers.py 프로젝트: leom/showoff
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')