class ScalarObjectAttributeImpl(ScalarAttributeImpl): (source)
represents a scalar-holding InstrumentedAttribute, where the target object is also instrumented. Adds events to delete/set operations.
Method | delete |
Undocumented |
Method | fire |
Undocumented |
Method | fire |
Undocumented |
Method | get |
Return a list of tuples of (state, obj) for all objects in this attribute's current state + history. |
Method | get |
Undocumented |
Method | set |
Set a value on the given InstanceState. |
Class Variable | __slots__ |
Undocumented |
Class Variable | collection |
Undocumented |
Class Variable | default |
Undocumented |
Class Variable | supports |
Undocumented |
Class Variable | uses |
Undocumented |
Inherited from ScalarAttributeImpl
:
Method | __init__ |
Construct an AttributeImpl. |
Class Variable | dynamic |
Undocumented |
Instance Variable | _append |
Undocumented |
Instance Variable | _remove |
Undocumented |
Instance Variable | _replace |
Undocumented |
Inherited from AttributeImpl
(via ScalarAttributeImpl
):
Method | __str__ |
Undocumented |
Method | append |
Undocumented |
Method | get |
Retrieve a value from the given object. If a callable is assembled on this object's attribute, and passive is False, the callable will be executed and the resulting value will be set as the new value for this attribute. |
Method | get |
return the unchanged value of this attribute |
Method | hasparent |
Return the boolean value of a `hasparent` flag attached to the given state. |
Method | pop |
Undocumented |
Method | remove |
Undocumented |
Method | set |
set an attribute value on the given instance and 'commit' it. |
Method | sethasparent |
Set a boolean flag on the given item corresponding to whether or not it is attached to a parent object via the attribute represented by this ``InstrumentedAttribute``. |
Class Variable | active |
Undocumented |
Instance Variable | accepts |
Undocumented |
Instance Variable | callable_ |
Undocumented |
Instance Variable | class_ |
Undocumented |
Instance Variable | dispatch |
Undocumented |
Instance Variable | is |
Undocumented |
Instance Variable | key |
Undocumented |
Instance Variable | load |
Undocumented |
Instance Variable | parent |
Undocumented |
Instance Variable | send |
Undocumented |
Instance Variable | trackparent |
Undocumented |
Method | _default |
Produce an empty value for an uninitialized scalar attribute. |
Method | _fire |
Undocumented |
Method | _get |
Backwards compat for impl.active_history |
Method | _set |
Undocumented |
Class Variable | _is |
Undocumented |
Instance Variable | _deferred |
Undocumented |
Instance Variable | _modified |
Undocumented |
InstanceState[ Any]
, dict_: _InstanceDict
, value: Any
, initiator: Optional[ AttributeEventToken]
):
(source)
¶
Undocumented
InstanceState[ Any]
, dict_: _InstanceDict
, value: _T
, previous: Any
, initiator: Optional[ AttributeEventToken]
) -> _T
:
(source)
¶
Undocumented
InstanceState[ Any]
, dict_: _InstanceDict
, passive: PassiveFlag
= PASSIVE_NO_INITIALIZE) -> _AllPendingType
:
(source)
¶
Return a list of tuples of (state, obj) for all objects in this attribute's current state + history. Only applies to object-based attributes. This is an inlining of existing functionality which roughly corresponds to: get_state_history( state, key, passive=PASSIVE_NO_INITIALIZE).sum()
InstanceState[ Any]
, dict_: _InstanceDict
, passive: PassiveFlag
= PASSIVE_OFF) -> History
:
(source)
¶
Undocumented
InstanceState[ Any]
, dict_: _InstanceDict
, value: Any
, initiator: Optional[ AttributeEventToken]
= None, passive: PassiveFlag
= PASSIVE_OFF, check_old: Any
= None, pop: bool
= False):
(source)
¶
Set a value on the given InstanceState.