def get(self, sporocilo_id): sporocilo = KnjigaGostov.get_by_id(int(sporocilo_id)) params = {"sporocilo": sporocilo} self.render_template("izbrisi_sporocilo.html", params=params)
def post(self, sporocilo_id): sporocilo = KnjigaGostov.get_by_id(int(sporocilo_id)) sporocilo.izbrisan = True sporocilo.put() self.redirect_to("seznam_sporocil")
def post(self, sporocilo_id): popravek = self.request.get("sporocilo_uredi") sporocilo = KnjigaGostov.get_by_id(int(sporocilo_id)) sporocilo.sporocilo = popravek sporocilo.put() self.redirect_to("seznam_sporocil")