class documentation

class _AssociationCollection(object):

Known subclasses: sqlalchemy.ext.associationproxy._AssociationDict, sqlalchemy.ext.associationproxy._AssociationList, sqlalchemy.ext.associationproxy._AssociationSet

View In Hierarchy

Undocumented

Method __bool__ Undocumented
Method __getstate__ Undocumented
Method __init__ Constructs an _AssociationCollection.
Method __len__ Undocumented
Method __setstate__ Undocumented
Method ​_bulk​_replace Undocumented
Class Variable col Undocumented
Instance Variable creator Undocumented
Instance Variable getter Undocumented
Instance Variable lazy​_collection Undocumented
Instance Variable parent Undocumented
Instance Variable setter Undocumented
def __bool__(self):
def __getstate__(self):

Undocumented

def __init__(self, lazy_collection, creator, getter, setter, parent):

Constructs an _AssociationCollection.

This will always be a subclass of either _AssociationList, _AssociationSet, or _AssociationDict.

lazy_collection
A callable returning a list-based collection of entities (usually an object attribute managed by a SQLAlchemy relationship())
creator

A function that creates new target entities. Given one parameter: value. This assertion is assumed:

obj = creator(somevalue)
assert getter(obj) == somevalue
getter
A function. Given an associated object, return the 'value'.
setter
A function. Given an associated object and a value, store that value on the object.
def __len__(self):
def __setstate__(self, state):

Undocumented

def _bulk_replace(self, assoc_proxy, values):
col =

Undocumented

creator =

Undocumented

getter =

Undocumented

lazy_collection =

Undocumented

parent =

Undocumented

setter =

Undocumented