class documentation

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_events Context manager that sets defer_events to False
Instance Variable defer_events Undocumented
Method _add_deferred_event Defer this event.
Method _defer_events_changed Undocumented
Method _defer_events_changed_refire Undocumented
Method _fire_event Fire an ItemsModifiedEvent.
Class Variable _deferred_events 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_adapter Remove the 'top' from the top of the adapter stack.
Method push_adapter Add an adapter to the 'top' of the adapter stack.
Method _adapt_getitem Apply adapters in order, calling their adapt_getitem() method.
Method _adapt_name Apply adapters in order, calling their adapt_name method.
Method _adapt_setitem Apply dapters in reverse order, calling their adapt_setitem() method.
def __delitem__(self, name): (source)

Delete an item out of the context.

def __getattr__(self, attr): (source)

Undocumented

def __getitem__(self, name): (source)

Get the value bound to the variable 'name' from the context.

def __setitem__(self, name, value): (source)

Set the variable 'name' = value in the context.

def allows(self, value, name=None): (source)

Determine whether value is allowed in this context. fixme: Adapters are not used in this calculation yet. They should be.

def keys(self): (source)