]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Added new event handlers :meth:`.AttributeEvents.init_collection`
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 8 Sep 2014 00:28:19 +0000 (20:28 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 8 Sep 2014 00:28:19 +0000 (20:28 -0400)
commit390207e533854ab0c3abe6b7ebc45fae1b14eaba
tree435ab97d2cf1656eb5df2984d72fafdf2a364a1b
parent083d44c082a13761910c761debd17efac75a71b3
- Added new event handlers :meth:`.AttributeEvents.init_collection`
and :meth:`.AttributeEvents.dispose_collection`, which track when
a collection is first associated with an instance and when it is
replaced.  These handlers supersede the :meth:`.collection.linker`
annotation. The old hook remains supported through an event adapter.
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/collections.py
lib/sqlalchemy/orm/events.py
test/orm/test_attributes.py