Пример #1
0
def open_images():
    Image.open_images(session, request.form.getlist('images[]'))

    return jsonify(AjaxResult(True, 'Opening images...').to_json())
Пример #2
0
def open_image(image_id):
    i = Image.get_image(session, image_id)
    Image.open_images(session, [i.Image_Name])
    # TODO update client-side message
    return jsonify(AjaxResult(True, 'Opening image...').to_json())