예제 #1
0
파일: org2.py 프로젝트: fasrc/openauth
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,)
예제 #2
0
파일: org2.py 프로젝트: fasrc/openauth
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