Beispiel #1
0
def otec_email_body_header(session, req):
	"""text to use at the top of the continuation link email body (before the link)"""
	username = req.user.lower()
	fullname = org.getFullName(username)
	return """\
Hello %s,

Please use the following link to continue with your Research Computing openauth configuration:""" % (fullname,)
Beispiel #2
0
def greeting(session, req):
	"""html used at the very top of pages"""
	greeting = "Hello"
	username = core.getUsername(session, req)
	if username is not None: greeting += " %s" % org.getFullName(username)
	msg = """\
<p>
%s,
</p>
<br /><!--(because our paragraph margin-* css is off; remove on other sites)-->
""" % greeting
	if config.AUTH_TYPE=='HTTP':
		msg += """\
<p>
<small>(If you are not %s, you must close your browser and restart.)</small>
</p>
<br /><!--(because our paragraph margin-* css is off; remove on other sites)-->
""" % (fullname)
	return msg