class documentation

class _ClassInstrumentationAdapter(ClassManager): (source)

View In Hierarchy

Adapts a user-defined InstrumentationManager to a ClassManager.

Method __init__ Undocumented
Method dict_getter Undocumented
Method has_state Undocumented
Method initialize_collection Undocumented
Method install_descriptor Undocumented
Method install_member Undocumented
Method instrument_attribute Undocumented
Method instrument_collection_class Undocumented
Method manage Mark this instance as the manager for its class.
Method manager_getter Undocumented
Method new_instance Undocumented
Method post_configure_attribute Undocumented
Method setup_instance Undocumented
Method state_getter Return a (instance) -> InstanceState callable.
Method teardown_instance Undocumented
Method uninstall_descriptor Undocumented
Method uninstall_member Undocumented
Method unregister remove all instrumentation established by this ClassManager.
Method _new_state_if_none Install a default InstanceState if none is present.
Instance Variable _adapted Undocumented
Instance Variable _get_dict Undocumented
Instance Variable _get_state Undocumented

Inherited from ClassManager:

Method __bool__ All ClassManagers are non-zero regardless of attribute state.
Method __eq__ Undocumented
Method __hash__ Undocumented
Method __repr__ Undocumented
Method deferred_scalar_loader.setter Undocumented
Method get_impl Undocumented
Method has_parent TODO
Method is_instrumented Undocumented
Method subclass_managers Undocumented
Method uninstrument_attribute Undocumented
Class Variable registry Undocumented
Instance Variable class_ Undocumented
Instance Variable declarative_scan Undocumented
Instance Variable dispatch Undocumented
Instance Variable expired_attribute_loader previously known as deferred_scalar_loader
Instance Variable factory Undocumented
Instance Variable info Undocumented
Instance Variable init_method Undocumented
Instance Variable local_attrs Undocumented
Instance Variable mapper Undocumented
Instance Variable new_init Undocumented
Instance Variable original_init Undocumented
Instance Variable originals Undocumented
Property attributes Undocumented
Property deferred_scalar_loader Undocumented
Property is_mapped Undocumented
Method _all_key_set Undocumented
Method _all_sqla_attributes return an iterator of all classbound attributes that are implement :class:`.InspectionAttr`.
Method _attr_has_impl Return True if the given attribute is fully initialized.
Method _collection_impl_keys Undocumented
Method _finalize Undocumented
Method _get_class_attr_mro return an attribute on the class without tripping it.
Method _instrument_init Undocumented
Method _loader_impls Undocumented
Method _scalar_loader_impls Undocumented
Method _serialize Undocumented
Method _subclass_manager Create a new ClassManager for a subclass of this ClassManager's class.
Method _update_state Undocumented
Class Variable _state_setter Undocumented
Instance Variable _bases Undocumented
Instance Variable _finalized Undocumented
Property _state_constructor Undocumented
def __init__(self, class_, override): (source)
def has_state(self, instance): (source)
def initialize_collection(self, key, state, factory): (source)
def install_descriptor(self, key, inst): (source)
def install_member(self, key, implementation): (source)
def instrument_attribute(self, key, inst, propagated=False): (source)
def instrument_collection_class(self, key, collection_class): (source)
def manage(self): (source)

Mark this instance as the manager for its class.

def new_instance(self, state=None): (source)
def post_configure_attribute(self, key): (source)
def setup_instance(self, instance, state=None): (source)
def state_getter(self): (source)

Return a (instance) -> InstanceState callable. "state getter" callables should raise either KeyError or AttributeError if no InstanceState could be found for the instance.

def teardown_instance(self, instance): (source)
def uninstall_descriptor(self, key): (source)
def uninstall_member(self, key): (source)
def unregister(self): (source)

remove all instrumentation established by this ClassManager.

def _new_state_if_none(self, instance): (source)

Install a default InstanceState if none is present. A private convenience method used by the __init__ decorator.

_adapted = (source)

Undocumented

_get_dict = (source)

Undocumented

_get_state = (source)

Undocumented