def source_modified(uowcommit, source, source_mapper, synchronize_pairs):
 for (l, r) in synchronize_pairs:
  try:
   prop = source_mapper._columntoproperty[l]
  except exc.UnmappedColumnError:
   _raise_col_to_prop(False, source_mapper, l, None, r)
  history = uowcommit.get_attribute_history(source, prop.key, attributes.PASSIVE_NO_INITIALIZE)
  if bool(history.deleted):
   return True
 else:
  return False

def source_modified ( uowcommit , source , source_mapper , synchronize_pairs ) : for ( l , r ) in synchronize_pairs : try : prop = source_mapper . _columntoproperty [ l ] except exc . UnmappedColumnError : _raise_col_to_prop ( False , source_mapper , l , None , r ) history = uowcommit . get_attribute_history ( source , prop . key , attributes . PASSIVE_NO_INITIALIZE ) if bool ( history . deleted ) : return True else : return False
return true if the source object has changes from an old to a new value on the given synchronize pairs .