Beispiel #1
0
def delete_entry(place, id, hash):
    entry = Door2DoorEntry.find(id=id)
    if not entry and entry.get_hash() != hash:
        abort(404)
    db.session.delete(entry)
    db.session.commit()
    signals.door2door_delete.send(entry, place=place)
    flash(u"Deleted entry of {}.".format(entry.name))
    return redirect(url_for(".door2door", place=place))
Beispiel #2
0
def delete_entry(place, id, hash):
    entry = Door2DoorEntry.find(id=id)
    if not entry and entry.get_hash() != hash:
        abort(404)
    db.session.delete(entry)
    db.session.commit()
    signals.door2door_delete.send(entry, place=place)
    flash(u"Deleted entry of {}.".format(entry.name))
    return redirect(url_for(".door2door", place=place))
Beispiel #3
0
def details(place, page, id, hash):
    entry = Door2DoorEntry.find(id=id)
    if not entry and entry.get_hash() != hash:
        abort(404)
    return render_template("details.html", place=place, entry=entry, page=page)
Beispiel #4
0
def delete_entry(place, _id):
    entry = Door2DoorEntry.find(id=_id)
    db.session.delete(entry)
    db.session.commit()
    return render_template("door2door.html", place=place)
Beispiel #5
0
def details(place, page, id, hash):
    entry = Door2DoorEntry.find(id=id)
    if not entry and entry.get_hash() != hash:
        abort(404)
    return render_template("details.html", place=place, entry=entry, page=page)