#NEWLINE# def activation_email( request , user ) : #NEWLINE# #INDENT# "Return the data for an 'activate your account' email for the given user.\n\n    :rtype: dict\n\n    " #NEWLINE# link = request . route_url ( 'activate' , id = user . id , code = user . activation . code ) #NEWLINE# emailtext = 'Please validate your email and activate your account by visiting: {link}' #NEWLINE# body = emailtext . format ( link = link ) #NEWLINE# return { #NEWLINE# #INDENT# 'subject' : _ ( 'Please activate your account' ) , #NEWLINE# 'recipients' : [ user . email ] , #NEWLINE# 'body' : body , #NEWLINE# #UNINDENT# }