Beispiel #1
0
	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)
Beispiel #2
0
	def GET(self):
		form = mapForm()
		result = data.getAllMaps()
		return render.maps(mapSet=result, form=form)
Beispiel #3
0
	def GET(self, id):
		db.delete(id)
		result = data.getAllMaps()
		web.seeother('/maps')