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)
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)
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('/')
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('/')