#NEWLINE# def add( self , data , mime ) : #NEWLINE# #INDENT# if ( self . mode == READ_WRITE ) : #NEWLINE# #INDENT# item = DataTransferItem ( mime . lower ( ) , data ) #NEWLINE# self . append ( item ) #NEWLINE# idx = self . index ( item ) #NEWLINE# return self [ idx ]