Example #1
0
 def GET(self):
     formManual = self.formManual()
     last_temp = model.get_last_temp()
     list_temp = model.get_list_temp()
     active_program = model.get_active_program()
     manual_program = model.get_manual_program()
     formManual.fill(manual_program)
     return render.index(last_temp, list_temp, formManual, active_program)
Example #2
0
 def GET(self):
     formManual=self.formManual()
     last_temp = model.get_last_temp()
     list_temp = model.get_list_temp()
     active_program=model.get_active_program()
     manual_program = model.get_manual_program()
     formManual.fill(manual_program)
     return render.index(last_temp,list_temp,formManual,active_program)
Example #3
0
 def POST(self):
     formManual = self.formManual()
     last_temp = model.get_last_temp()
     list_temp = model.get_list_temp()
     manual_program = model.get_manual_program()
     if not formManual.validates():
         formManual.fill(manual_program)
         return render.index(last_temp, list_temp, formManual)
     model.update_manual_program(formManual.d.active, formManual.d.temp)
     raise web.seeother('/')
Example #4
0
 def POST(self):
     formManual=self.formManual()
     last_temp = model.get_last_temp()
     list_temp = model.get_list_temp()
     manual_program = model.get_manual_program()
     if not formManual.validates():
         formManual.fill(manual_program)
         return render.index(last_temp,list_temp,formManual)
     model.update_manual_program(formManual.d.active,formManual.d.temp)
     raise web.seeother('/')