Esempio n. 1
0
    def post(self, opravilo_id):
        task = Task.get_by_id(int(opravilo_id))
        text = self.request.get("new_text")
        task.task_text = text
        task.put()

        params = {"new_text": task}

        return self.render_template("opravila.html", params=params)
Esempio n. 2
0
 def post(self, opravilo_id):
     message_model = Task.get_by_id(int(opravilo_id))
     message_model.key.delete()
     message_model.deleted = True
     message_model.put()
     return self.render_template("opravila.html")