def _organize_states_for_delete(base_mapper, states, uowtransaction):
 for (state, dict_, mapper, connection) in _connections_for_states(base_mapper, uowtransaction, states):
  mapper.dispatch.before_delete(mapper, connection, state)
  if (mapper.version_id_col is not None):
   update_version_id = mapper._get_committed_state_attr_by_column(state, dict_, mapper.version_id_col)
  else:
   update_version_id = None
  (yield (state, dict_, mapper, connection, update_version_id))

def _organize_states_for_delete ( base_mapper , states , uowtransaction ) : for ( state , dict_ , mapper , connection ) in _connections_for_states ( base_mapper , uowtransaction , states ) : mapper . dispatch . before_delete ( mapper , connection , state ) if ( mapper . version_id_col is not None ) : update_version_id = mapper . _get_committed_state_attr_by_column ( state , dict_ , mapper . version_id_col ) else : update_version_id = None ( yield ( state , dict_ , mapper , connection , update_version_id ) )
make an initial pass across a set of states for delete .