Esempio n. 1
0
def beta_remove():
	key = request.values.get('key', None)
	if key is None:
		abort(404)
	user = BetaUser.get(key)
	user.inbeta = False
	user.save()
	if user.emailnotify:
		taskqueue.add(url=url_for('user_beta_status_change'), params={
			'user-key': user.key(),
		})
	return redirect(url_for('view_profile', key=key))
Esempio n. 2
0
def user_beta_status_change():
	key = request.values.get('user-key', None)
	if key:
		user = BetaUser.get(key)
		if user:
			status = 'Not Participating'
			if user.inbeta:
				status = 'Participating'
			mail.send_mail(sender='*****@*****.**',
					  to=user.email,
					  subject='[Mumble iOS Beta] Beta Status Change',
					  body='''Hello %s!

You are receiving this email to notify you that your beta status on the Mumble for iOS Beta Portal has changed.

Your new status is '%s'

Please visit the portal for further information.

Thanks,
Mumble for iOS Beta Team''' % (user.name, status))
	return ''
Esempio n. 3
0
def view_profile():
	key = request.values.get('key', None)
	if key is None:
		abort(404)
	user = BetaUser.get(key)
	return render_template('viewprofile.html', user=user)