#NEWLINE# def set_targets( self ) : #NEWLINE# #INDENT# addons = [ ] #NEWLINE# for addon in [ self . src_node . get_addon ( name ) for name in settings . ADDONS_ARCHIVABLE if ( settings . ADDONS_ARCHIVABLE [ name ] != 'none' ) ] : #NEWLINE# #INDENT# if ( ( not addon ) or ( not archive_errors . complete ) or ( not isinstance ( addon , StorageAddonBase ) ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# archive_errors = getattr ( addon , 'archive_errors' , None ) #NEWLINE# if ( ( not archive_errors ) or ( archive_errors and ( not archive_errors ( ) ) ) ) : #NEWLINE# #INDENT# if ( addon . config . short_name == 'dataverse' ) : #NEWLINE# #INDENT# addons . append ( ( addon . config . short_name + '-draft' ) ) #NEWLINE# addons . append ( ( addon . config . short_name + '-published' ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# addons . append ( addon . config . short_name ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# for addon in addons : #NEWLINE# #INDENT# self . _set_target ( addon ) #NEWLINE# #UNINDENT# self . save ( )