diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-04-10 19:21:54 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-04-10 19:21:54 -0400 |
| commit | 44c67fef8cc578ffbca409ad95e6471b4cb4d02a (patch) | |
| tree | 564d8a340da815b5179ea06236be4b5981eea400 /lib/sqlalchemy/orm/sync.py | |
| parent | a6c0057b74604235e2c6066be7e9f28644c67fa8 (diff) | |
| download | sqlalchemy-44c67fef8cc578ffbca409ad95e6471b4cb4d02a.tar.gz | |
- starting to groom the branch for its inclusion
- one-to-many relationships now maintain a list of positive
parent-child associations within the flush, preventing
previous parents marked as deleted from cascading a
delete or NULL foreign key set on those child objects,
despite the end-user not removing the child from the old
association. [ticket:1764]
- re-established Preprocess as unique on their arguments,
as they were definitely duped in inheritance scenarios
- added a "memo" feature to UOWTransaction which represents the usual
pattern of using the .attributes collection
- added the test case from [ticket:1081] into perf/
Diffstat (limited to 'lib/sqlalchemy/orm/sync.py')
| -rw-r--r-- | lib/sqlalchemy/orm/sync.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sqlalchemy/orm/sync.py b/lib/sqlalchemy/orm/sync.py index b9ddbb6e7..184ae8c84 100644 --- a/lib/sqlalchemy/orm/sync.py +++ b/lib/sqlalchemy/orm/sync.py @@ -75,8 +75,7 @@ def source_modified(uowcommit, source, source_mapper, synchronize_pairs): except exc.UnmappedColumnError: _raise_col_to_prop(False, source_mapper, l, None, r) history = uowcommit.get_attribute_history(source, prop.key, passive=True) - if len(history.deleted): - return True + return bool(history.deleted) else: return False |
