#NEWLINE# def process_deletes( self , uowcommit , states ) : #NEWLINE# #INDENT# secondary_delete = [ ] #NEWLINE# secondary_insert = [ ] #NEWLINE# secondary_update = [ ] #NEWLINE# processed = self . _get_reversed_processed_set ( uowcommit ) #NEWLINE# tmp = set ( ) #NEWLINE# for state in states : #NEWLINE# #INDENT# history = uowcommit . get_attribute_history ( state , self . key , self . _passive_delete_flag ) #NEWLINE# if history : #NEWLINE# #INDENT# for child in history . non_added ( ) : #NEWLINE# #INDENT# if ( ( child is None ) or ( ( processed is not None ) and ( ( state , child ) in processed ) ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# associationrow = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if ( not self . _synchronize ( state , child , associationrow , False , uowcommit , 'delete' ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# secondary_delete . append ( associationrow ) #NEWLINE# #UNINDENT# tmp . update ( ( ( c , state ) for c in history . non_added ( ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# if ( processed is not None ) : #NEWLINE# #INDENT# processed . update ( tmp ) #NEWLINE# #UNINDENT# self . _run_crud ( uowcommit , secondary_insert , secondary_update , secondary_delete )