]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Made some fixes to the system of producing custom instrumented
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 21 Jan 2013 22:57:24 +0000 (17:57 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 21 Jan 2013 22:57:24 +0000 (17:57 -0500)
commit2c425c9680b813952254292c5d1ee8e234b6f53a
treedc7249c53aa9aec5bc495a5189685120182bf92a
parent5af97bee84cc5b78ff5311c5669fbd4d5aeb46e1
- Made some fixes to the system of producing custom instrumented
collections, mainly that the usage of the @collection decorators
will now honor the __mro__ of the given class, applying the
logic of the sub-most classes' version of a particular collection
method.   Previously, it wasn't predictable when subclassing
an existing instrumented class such as :class:`.MappedCollection`
whether or not custom methods would resolve correctly.
[ticket:2654]

- The undocumented (and hopefully unused) system of producing
custom collections using an ``__instrumentation__`` datastructure
associated with the collection has been removed, as this was a complex
and untested feature which was also essentially redundant versus the
decorator approach.   Other internal simplifcations to the
orm.collections module have been made as well.
doc/build/changelog/changelog_08.rst
lib/sqlalchemy/orm/collections.py
test/orm/test_collection.py