Exemplo n.º 1
0
 def post(self, message_id):
     shrani = Film.get_by_id(int(message_id))
     shrani.naslov = self.request.get("nov_naslov")
     shrani.reziser = self.request.get("nov_reziser")
     shrani.url_slike = self.request.get("nov_url_slike")
     shrani.ocena = self.request.get("ocena")
     shrani.put()
     return self.redirect_to("seznam")
Exemplo n.º 2
0
 def post(self, film_id, **kwargs):
     if self.form.validate():
         film = Film.get_by_id(film_id)
         if film:
             version = FilmVersion(
                 film=film,
                 title=self.form.title.data,
                 user=self.auth_current_user.user
             )
         version.put()
     return redirect('films/%d' % film_id)
Exemplo n.º 3
0
 def post(self, film_id):
     zapis = Film.get_by_id(int(film_id))
     zapis.izbrisano = False
     zapis.put()
     return self.redirect_to("skriti_seznam")
Exemplo n.º 4
0
 def get(self, film_id):
     zapis = Film.get_by_id(int(film_id))
     params = {"zapis": zapis}
     return self.render_template("obnovi.html", params=params)
Exemplo n.º 5
0
 def post(self, message_id):
     shrani = Film.get_by_id(int(message_id))
     shrani.izbrisano = True
     shrani.put()
     return self.redirect_to("seznam")
Exemplo n.º 6
0
    def get(self, message_id):
        shrani = Film.get_by_id(int(message_id))

        params = {"shrani": shrani}
        return self.render_template("seznam_skrij.html", params=params)
Exemplo n.º 7
0
 def post(self, film_id):
     zapis = Film.get_by_id(int(film_id))
     zapis.key.delete()
     return self.redirect_to("skriti_seznam")