]> 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:56:57 +0000 (12:56 -0500)
commitb7ad656e06a1fe64a60e13540f3810d98ffb151e
tree43b0d8feee77de21355bf1809fd465c94dc0e1e0
parent5f7814707df9e319d00257d89f72886f9eda9d52
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