示例#1
0
 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')
示例#2
0
 def GET(self):
     form=self.form()
     houses = model.get_Allhouses()
     return render.allhouses(houses, form)