]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Document and support nested composites
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 12 Dec 2018 17:51:20 +0000 (12:51 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 12 Dec 2018 17:54:56 +0000 (12:54 -0500)
commiteb73b1a1cdb72e76bda65df2dd024e3efa7a254b
treed311aec472a7b30296bc89f2dc184e5b5d1f845d
parent560452acd292c8a9a57db032378a6342f16448c6
Document and support nested composites

Composites can behave in a "nested" fashion by defining the
class in that way.   To make the constructor more convenient,
a callable can be passed to :func:`.composite` instead of the
class itself.  This works now, so add a test to ensure this
pattern remains available.

Change-Id: Ia009f274fca7269f41d6d824e0f70b6fb0ada081
(cherry picked from commit d4a130bb1b92869efe33675262c7b1fde364e477)
doc/build/orm/composites.rst
lib/sqlalchemy/orm/descriptor_props.py
test/orm/test_composites.py