class AdaptedDataContext(DataContext, AdapterManagerMixin): (source)
Known subclasses: codetools.contexts.iterable_adapted_data_context.IterableAdaptedDataContext
A Context (namespace) that supports a list of adapters that can adapt key names or the process of getting/setting values in the context. It can be used as an execution namespace for expressions or adapted in a number of ways to provide operations on a masked set of its data, unit conversion of the data, enforcement that values retreived from the namespace (even if they are scalars) are retreived as arrays of a certain size, etc.
Method | __delitem__ |
Delete an item out of the context. |
Method | __getattr__ |
Undocumented |
Method | __getitem__ |
Get the value bound to the variable 'name' from the context. |
Method | __setitem__ |
Set the variable 'name' = value in the context. |
Method | allows |
Determine whether value is allowed in this context. |
Method | keys |
Return the list of variables available in context. |
Inherited from DataContext
:
Method | __contains__ |
Undocumented |
Method | __eq__ |
Don't allow objects of different classes to be equal. |
Method | __iter__ |
Undocumented |
Method | __len__ |
Undocumented |
Method | __ne__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __str__ |
Undocumented |
Method | checkpoint |
Make a shallow copy of the context. |
Class Variable | name |
Undocumented |
Class Variable | subcontext |
Undocumented |
Inherited from ListenableMixin
(via DataContext
):
Method | deferred |
Context manager that sets defer_events to False |
Instance Variable | defer |
Undocumented |
Method | _add |
Defer this event. |
Method | _defer |
Undocumented |
Method | _defer |
Undocumented |
Method | _fire |
Fire an ItemsModifiedEvent. |
Class Variable | _deferred |
Undocumented |
Inherited from PersistableMixin
(via DataContext
):
Static Method | load |
Unpickle the context from a file |
Method | save |
Pickle the data context out to a file |
Inherited from AdapterManagerMixin
:
Method | pop |
Remove the 'top' from the top of the adapter stack. |
Method | push |
Add an adapter to the 'top' of the adapter stack. |
Method | _adapt |
Apply adapters in order, calling their adapt_getitem() method. |
Method | _adapt |
Apply adapters in order, calling their adapt_name method. |
Method | _adapt |
Apply dapters in reverse order, calling their adapt_setitem() method. |
Determine whether value is allowed in this context. fixme: Adapters are not used in this calculation yet. They should be.