]> 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:20 +0000 (12:54 -0500)
commitd4a130bb1b92869efe33675262c7b1fde364e477
tree36c3d05f51ca8b5fa79a84bdefdb7a3c05093849
parent7206308e7fa6213b032ef4f7630dcb6aa460217c
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
doc/build/orm/composites.rst
lib/sqlalchemy/orm/descriptor_props.py
test/orm/test_composites.py