#NEWLINE# def process_saves( self , uowcommit , states ) : #NEWLINE# #INDENT# for state in states : #NEWLINE# #INDENT# history = uowcommit . get_attribute_history ( state , self . key , attributes . PASSIVE_NO_INITIALIZE ) #NEWLINE# if history : #NEWLINE# #INDENT# for child in history . added : #NEWLINE# #INDENT# self . _synchronize ( state , child , None , False , states , False ) #NEWLINE# if ( ( child is not None ) and self . post_update ) : #NEWLINE# #INDENT# self . _post_update ( child , uowcommit , [ state ] ) #NEWLINE# #UNINDENT# #UNINDENT# for child in history . deleted : #NEWLINE# #INDENT# if ( ( not self . cascade . delete_orphan ) and ( not self . hasparent ( child ) ) ) : #NEWLINE# #INDENT# self . _synchronize ( state , child , None , True , uowcommit , False ) #NEWLINE# #UNINDENT# #UNINDENT# if self . _pks_changed ( uowcommit , state ) : #NEWLINE# #INDENT# for child in history . unchanged : #NEWLINE# #INDENT# self . _synchronize ( state , child , None , False , uowcommit , True )