class documentation

class LoadLazyAttribute(object):

View In Hierarchy

semi-serializable loader object used by LazyLoader

Historically, this object would be carried along with instances that needed to run lazyloaders, so it had to be serializable to support cached instances.

this is no longer a general requirement, and the case where this object is used is exactly the case where we can't really serialize easily, which is when extra criteria in the loader option is present.

We can't reliably serialize that as it refers to mapped entities and AliasedClass objects that are local to the current process, which would need to be matched up on deserialize e.g. the sqlalchemy.ext.serializer approach.

Method __call__ Undocumented
Method __getstate__ Undocumented
Method __init__ Undocumented
Instance Variable extra​_criteria Undocumented
Instance Variable key Undocumented
Instance Variable loadopt Undocumented
Instance Variable strategy​_key Undocumented
def __call__(self, state, passive=attributes.PASSIVE_OFF):

Undocumented

def __getstate__(self):

Undocumented

def __init__(self, key, initiating_strategy, loadopt, extra_criteria):

Undocumented

extra_criteria =

Undocumented

key =

Undocumented

loadopt =

Undocumented

strategy_key =

Undocumented