objects can be associated with a single association collection.
- mysql
- support for SSL arguments given as inline within URL query string,
prefixed with "ssl_", courtesy terjeros@gmail.com.
-
+- extensions
+ - big fix to AssociationProxy so that multiple AssociationProxy
+ objects can be associated with a single association collection.
0.3.6
- sql:
- bindparam() names are now repeatable! specify two
``__init__()`` constructor and setting the proxied
attribute.
"""
+
self.targetcollection = targetcollection
self.attr = attr
self.creator = creator
-
+
def __init_deferred(self):
prop = class_mapper(self._owner_class).props[self.targetcollection]
self._cls = prop.mapper.class_
self._owner_class = owner
if obj is None:
return self
- storage_key = '_AssociationProxy_%s' % self.targetcollection
+ storage_key = '_AssociationProxy_%s_%s' % (self.targetcollection, self.attr)
if self.uselist:
try:
return getattr(obj, storage_key)