Example #1
0
 def post(self):
     naloga = self.request.get("vpisano")
     dan = self.request.get("dan")
     mesec = self.request.get("mesec")
     leto = self.request.get("leto")
     datum = dan + "." + mesec + "." + leto
     nalogica = TaskManager(besedilo=naloga, rok=datum)
     nalogica.put()
     return self.render_template("rezultat.html")
Example #2
0
    def post(self):
        to_do = self.request.get("list")
        status = self.request.get("status")
        status_baza = False
        if status == "on":
            status_baza = True

        save = TaskManager(list=to_do, status=status_baza)
        save.put()

        return self.render_template("save.html")
Example #3
0
    def post(self):
        task = self.request.get("task")
        description = self.request.get("description")
        complete_till = self.request.get("complete_till")

        if complete_till == "":
            complete_till = "Not specified"

        task1 = TaskManager(task=task, description=description, complete_till=complete_till)
        task1.put()

        self.render_template("task-added.html")