def POST(self): form = mapForm() if not form.validates(): result = data.getAllMaps() return render.maps(mapSet=result, form=form) else: data.addMap(form.d) result = data.getAllMaps() return render.maps(mapSet=result, form=form)
def GET(self): form = mapForm() result = data.getAllMaps() return render.maps(mapSet=result, form=form)
def GET(self, id): db.delete(id) result = data.getAllMaps() web.seeother('/maps')