#NEWLINE# def clean_backup( self ) : #NEWLINE# #INDENT# backup = self . cleaned_data [ 'backup' ] #NEWLINE# if backup : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# LOG . debug ( 'Obtaining backups' ) #NEWLINE# bkup = api . trove . backup_get ( self . request , backup ) #NEWLINE# self . cleaned_data [ 'backup' ] = bkup . id #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# raise forms . ValidationError ( _ ( 'Unable to find backup!' ) ) #NEWLINE# #UNINDENT# #UNINDENT# return backup