#NEWLINE# def before_flush( self , obj = None ) : #NEWLINE# #INDENT# if class_ : #NEWLINE# #INDENT# self . _check_object_deleted ( obj ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# for ( class_ , id_ , obj ) in self . session . imap : #NEWLINE# #INDENT# self . _check_object_deleted ( obj )