Exemplo n.º 1
0
		def transaction(input):
			owner = users.get_current_user()
			keyname = owner.nickname()
  			userData = UserData.get_or_insert(keyname, owner = owner, messageCounter = 0, quotaCounter = 0)
  			userData.language = input.language
  			userData.timezone = TZ
  			userData.put()
Exemplo n.º 2
0
	def GET(self):
		counters = UserData.all()
		for counter in counters:
			counter.quotaCounter = 0
			counter.put()

		renderer.addData('success', 1)
		return renderer.render('cron/resetquotas.html')