コード例 #1
0
ファイル: controllers.py プロジェクト: yondjune/showoff
def remove_image_from_show(album, filename):
    """Remove an image from the show"""
    show = Show(album, current_app.config, session)

    try:
        show.remove_image(filename).save()
    except:
        return jsonify(result="Failed")

    return jsonify(result="OK")
コード例 #2
0
ファイル: controllers.py プロジェクト: younthu/showoff
def remove_image_from_show(album, filename):
    """Remove an image from the show"""
    show = Show(album, current_app.config, session)

    try:
        show.remove_image(filename).save()
    except:
        return jsonify(result='Failed')

    return jsonify(result='OK')
コード例 #3
0
ファイル: controllers.py プロジェクト: leom/showoff
def remove_image_from_show(album, filename):
    """Remove an image from the show"""
    show = Show(album)
    if show.remove_image(filename):
        return jsonify(result='OK')
    return jsonify(result='Failed')