Beispiel #1
0
	def get(self):
		user = users.get_current_user()
		if user == None:
			return

		logging.info("/event/update begin")
		query = db.GqlQuery("SELECT * FROM Place WHERE user = :1", user)
		mark_place = query.fetch(100)
		self.response.headers['Content-Type'] = "application/json"
		self.response.out.write(myjson.encode(mark_place))
		logging.info(myjson.encode(mark_place))
		logging.info("/event/update end")
		for place in mark_place:
			place.delete()
import webapp2
Beispiel #3
0
import webapp2