[Sqlalchemy-commits] commit/sqlalchemy: zzzeek: Support AssociationProxy any() / has() / contains()
Brought to you by:
zzzeek
From: Bitbucket <com...@bi...> - 2017-06-12 20:50:35
|
1 new commit in sqlalchemy: https://bitbucket.org/zzzeek/sqlalchemy/commits/27a0bdcae0eb/ Changeset: 27a0bdcae0eb Branch: master User: zzzeek Date: 2017-06-12 20:31:59+00:00 Summary: Support AssociationProxy any() / has() / contains() to another AssociationProxy The :meth:`.AssociationProxy.any`, :meth:`.AssociationProxy.has` and :meth:`.AssociationProxy.contains` comparison methods now support linkage to an attribute that is itself also an :class:`.AssociationProxy`, recursively. After some initial attempts it's clear that the any() / has() of AssociationProxy needed to be reworked into a generic _criterion_exists() to allow this to work recursively without excess complexity. For the case of the multi-linked associationproxy, the usual checks of "any()" / "has()" correctness simply don't take place; for a single-link association proxy the error checking logic that takes place in relationship() has been ported to the local any() / has() methods. Change-Id: Ic5aed2a4e910b8138a737d215430113c31cce856 Fixes: #3769 Affected #: 4 files Repository URL: https://bitbucket.org/zzzeek/sqlalchemy/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. |