Twisted COIL: COnfiguration ILlumination.
An end-user direct-manipulation interface to Twisted, accessible through the
web.
This is a work in progress.
Imported modules
|
|
from twisted.python import log, components, reflect, roots
import types
|
Functions
|
|
createConfigurable
getCollection
getConfigurator
getConfiguratorClass
getConfiguratorsForTree
getImplementors
hasFactory
registerConfigurator
registerFactory
|
|
createConfigurable
|
createConfigurable (
configurableClass,
container,
name,
)
Instantiate a configurable.
First, I will find the factory for class configurableClass.
Then I will call it, with container and name as arguments.
Exceptions
|
|
TypeError( "No configurator registered for %s" % configurableClass )
|
|
|
getCollection
|
getCollection ( obj )
Get an object implementing ICollection for obj.
|
|
getConfigurator
|
getConfigurator ( obj )
Get an object implement IConfigurator for obj.
|
|
getConfiguratorClass
|
getConfiguratorClass ( klass )
Return an IConfigurator class for given class.
|
|
getConfiguratorsForTree
|
getConfiguratorsForTree ( root )
Return iterator of Configurators for a config tree.
This really ought to be implemented as a generator.
|
|
getImplementors
|
getImplementors ( interface )
Return list of registered classes that implement an interface.
|
|
hasFactory
|
hasFactory ( configurableClass )
Check if factory is available for this class.
|
|
registerConfigurator
|
registerConfigurator ( configuratorClass, factory=None )
Register a configurator for a class.
|
|
registerFactory
|
registerFactory ( configurableClass, factory )
Register a factory for a class.
|
Classes
|
|
|