#NEWLINE# def clean( self ) : #NEWLINE# #INDENT# 'Performs validation on the form.\n\n        This will check the form fields for errors, calling out to the\n        various clean_* methods.\n\n        It will check the repository path to see if it represents\n        a valid repository and if an SSH key or HTTPS certificate needs\n        to be verified.\n\n        This will also build repository and bug tracker URLs based on other\n        fields set in the form.\n        ' #NEWLINE# if ( ( not e . errors ) and self . subforms_valid ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . local_site = self . cleaned_data [ 'local_site' ] #NEWLINE# if self . local_site : #NEWLINE# #INDENT# self . local_site_name = self . local_site . name #NEWLINE# #UNINDENT# #UNINDENT# except LocalSite . DoesNotExist as e : #NEWLINE# #INDENT# raise ValidationError ( [ e ] ) #NEWLINE# #UNINDENT# self . _clean_hosting_info ( ) #NEWLINE# self . _clean_bug_tracker_info ( ) #NEWLINE# validate_review_groups ( self ) #NEWLINE# validate_users ( self ) #NEWLINE# if ( ( not self . errors ) and ( not self . cleaned_data [ 'reedit_repository' ] ) and self . cleaned_data . get ( 'visible' , True ) and self . validate_repository ) : #NEWLINE# #INDENT# self . _verify_repository_path ( ) #NEWLINE# #UNINDENT# self . _clean_ssh_key_association ( ) #NEWLINE# #UNINDENT# return super ( RepositoryForm , self ) . clean ( )