def post_update(base_mapper, states, uowtransaction, post_update_cols):
 cached_connections = _cached_connection_dict(base_mapper)
 states_to_update = list(_organize_states_for_post_update(base_mapper, states, uowtransaction))
 for (table, mapper) in base_mapper._sorted_tables.items():
  if (table not in mapper._pks_by_table):
   continue
  update = ((state, state_dict, sub_mapper, connection) for (state, state_dict, sub_mapper, connection) in states_to_update if (table in sub_mapper._pks_by_table))
  update = _collect_post_update_commands(base_mapper, uowtransaction, table, update, post_update_cols)
  _emit_post_update_statements(base_mapper, uowtransaction, cached_connections, mapper, table, update)

def post_update ( base_mapper , states , uowtransaction , post_update_cols ) : cached_connections = _cached_connection_dict ( base_mapper ) states_to_update = list ( _organize_states_for_post_update ( base_mapper , states , uowtransaction ) ) for ( table , mapper ) in base_mapper . _sorted_tables . items ( ) : if ( table not in mapper . _pks_by_table ) : continue update = ( ( state , state_dict , sub_mapper , connection ) for ( state , state_dict , sub_mapper , connection ) in states_to_update if ( table in sub_mapper . _pks_by_table ) ) update = _collect_post_update_commands ( base_mapper , uowtransaction , table , update , post_update_cols ) _emit_post_update_statements ( base_mapper , uowtransaction , cached_connections , mapper , table , update )
issue update statements on behalf of a relationship() which specifies post_update .