#NEWLINE# def validateSettings( event ) : #NEWLINE# #INDENT# ( key , val ) = ( event . info [ 'key' ] , event . info [ 'value' ] ) #NEWLINE# if ( key == constants . PluginSettings . PROVENANCE_RESOURCES ) : #NEWLINE# #INDENT# if val : #NEWLINE# #INDENT# if ( not isinstance ( val , six . string_types ) ) : #NEWLINE# #INDENT# raise ValidationException ( 'Provenance Resources must be a string.' , 'value' ) #NEWLINE# #UNINDENT# resources = val . replace ( ',' , ' ' ) . strip ( ) . split ( ) #NEWLINE# event . info [ 'value' ] = ',' . join ( key ) #NEWLINE# #UNINDENT# event . preventDefault ( ) . stopPropagation ( )