]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- repair issue in declared_attr.cascading such that within a
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 24 Feb 2015 20:29:30 +0000 (15:29 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 24 Feb 2015 20:29:30 +0000 (15:29 -0500)
commit3a56c4f019052c5dcd4e1cb5fd01a5680e6fc80e
tree69f60beb51f311400b41ed031fd3f2458d7a5391
parent305ea84004fe604f461cd3c9438fbc84e3d790b2
- repair issue in declared_attr.cascading such that within a
subclass, the value returned by the descriptor is not available
because the superclass is already mapped with the InstrumentedAttribute,
until the subclass is mapped.  We add a setattr() to set up that
attribute so that the __mapper_args__ hook and possibly others
have access to the "cascaded" version of the attribute within
the call.
lib/sqlalchemy/ext/declarative/base.py
test/ext/declarative/test_mixin.py