def _render_login_template(login_url, continue_url, email, admin):
 if email:
  login_message = 'Logged in'
 else:
  login_message = 'Not logged in'
  email = 'test@example.com'
 admin_checked = ('checked' if admin else '')
 template_dict = {'email': cgi.escape(email, quote=True), 'admin_checked': admin_checked, 'login_message': login_message, 'login_url': cgi.escape(login_url, quote=True), 'continue_url': cgi.escape(continue_url, quote=True)}
 return (_LOGIN_TEMPLATE % template_dict)

def _render_login_template ( login_url , continue_url , email , admin ) : if email : login_message = 'Logged in' else : login_message = 'Not logged in' email = 'test@example.com' admin_checked = ( 'checked' if admin else '' ) template_dict = { 'email' : cgi . escape ( email , quote = True ) , 'admin_checked' : admin_checked , 'login_message' : login_message , 'login_url' : cgi . escape ( login_url , quote = True ) , 'continue_url' : cgi . escape ( continue_url , quote = True ) } return ( _LOGIN_TEMPLATE % template_dict )
renders the login page .