#NEWLINE# def clean_email( self ) : #NEWLINE# #INDENT# '\n        Verify that the email exists\n        ' #NEWLINE# email = self . cleaned_data . get ( 'email' ) #NEWLINE# if ( not email ) : #NEWLINE# #INDENT# return email #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# User . objects . get ( email__iexact = email ) #NEWLINE# raise forms . ValidationError ( _ ( 'That e-mail is already used.' ) ) #NEWLINE# #UNINDENT# except User . DoesNotExist : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# EmailValidation . objects . get ( email = email ) #NEWLINE# raise forms . ValidationError ( _ ( 'That e-mail is already being confirmed.' ) ) #NEWLINE# #UNINDENT# except EmailValidation . DoesNotExist : #NEWLINE# #INDENT# return email