def POST(self): form=self.form() houses = model.get_Allhouses() if not form.validates(): return render.allhouses(houses,form) model.new_house(form.d.price, form.d.type, form.d.year, form.d.locationHouse, form.d.capacity) raise web.seeother('/houses')
def GET(self): form=self.form() houses = model.get_Allhouses() return render.allhouses(houses, form)