#NEWLINE# def send( self , **kwargs ) : #NEWLINE# #INDENT# current_site = ( kwargs [ 'site' ] if ( 'site' in kwargs ) else Site . objects . get_current ( ) ) #NEWLINE# protocol = getattr ( settings , 'DEFAULT_HTTP_PROTOCOL' , 'http' ) #NEWLINE# activate_url = '{0}://{1}{2}' . format ( protocol , current_site . domain , reverse ( settings . ACCOUNT_EMAIL_CONFIRMATION_URL , args = [ self . key ] ) ) #NEWLINE# ctx = { #NEWLINE# #INDENT# 'email_address' : self . email_address , #NEWLINE# 'user' : self . email_address . user , #NEWLINE# 'activate_url' : activate_url , #NEWLINE# 'current_site' : current_site , #NEWLINE# 'key' : self . key , #NEWLINE# #UNINDENT# } #NEWLINE# hookset . send_confirmation_email ( [ self . email_address . email ] , ctx ) #NEWLINE# self . sent = timezone . now ( ) #NEWLINE# self . save ( ) #NEWLINE# signals . email_confirmation_sent . send ( sender = self . __class__ , confirmation = self )