class documentation
class IAdapter(ABCHasTraits): (source)
Handles management of an adapter stack for objects that implement IContext.
Method | adapt |
Apply the adapter to values accessed through __getitem__ of a context. |
Method | adapt |
Returns an iterable containing any keys (names) defined by this adapter. Should return all names which could successfully be passed to adapt_name. |
Method | adapt |
Apply the adapter to names sent to a context through __setitem__ and __getitem__. |
Method | adapt |
Apply the adapter to values sent to a context through __setitem__. |
Apply the adapter to values accessed through __getitem__ of a context. context: The context being adapted. name: Name of variable sent to Context.__setitem__ value: Value of variable sent to Context.__setitem__ Returns a name/value pair.
Returns an iterable containing any keys (names) defined by this adapter. Should return all names which could successfully be passed to adapt_name. Note: This method is optional, useful only if adapt_name is implemented.
Apply the adapter to names sent to a context through __setitem__ and __getitem__. Returns a name. Note: This method is optional.