return true if the source object has changes from an old to a new value on the given synchronize pairs
(uowcommit, source, source_mapper, synchronize_pairs)
| 124 | |
| 125 | |
| 126 | def _source_modified(uowcommit, source, source_mapper, synchronize_pairs): |
| 127 | """return true if the source object has changes from an old to a |
| 128 | new value on the given synchronize pairs |
| 129 | |
| 130 | """ |
| 131 | for l, r in synchronize_pairs: |
| 132 | try: |
| 133 | prop = source_mapper._columntoproperty[l] |
| 134 | except exc.UnmappedColumnError as err: |
| 135 | _raise_col_to_prop(False, source_mapper, l, None, r, err) |
| 136 | history = uowcommit.get_attribute_history( |
| 137 | source, prop.key, PassiveFlag.PASSIVE_NO_INITIALIZE |
| 138 | ) |
| 139 | if bool(history.deleted): |
| 140 | return True |
| 141 | else: |
| 142 | return False |
| 143 | |
| 144 | |
| 145 | def _raise_col_to_prop( |
nothing calls this directly
no test coverage detected