API Reference for Enthought Tool Suite 3.2.0
Provider of a framework that dynamically determines the contents of a context at the time of interaction with the contents rather than at the time a class is written.
This capability is particularly useful when the object acting as a context is part of a plug-in application -- such as Envisage. In general, this capability allows the context to be:
It should be noted that this capability is explicitly different from contexts that look at another container to determine their contents, such as a file system context!
Users of this framework contribute items to a dynamic context by adding traits to the dynamic context instance. (This addition can happen statically through the use of a Traits Category.) The trait value is the context item's value and the trait definition's metadata determines how the item is treated within the context. The support metadata is:
Setup a logger for this module.
logger = logging.getLogger(__name__)
| Local name | Refers to |
|---|---|
| Binding | enthought.naming.binding.Binding |
| Context | enthought.naming.context.Context |
| logging | logging |
| OperationNotSupportedError | enthought.naming.exception.OperationNotSupportedError |
© Copyright 2002-2009 Enthought, Inc.