Table of Contents

Module: coil Twisted-0.19.0/twisted/coil/coil.py

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   
CollectionWrapper

Wrap an existing roots.Collection as a IConfigCollection.

ConfigCollection

A default implementation of IConfigCollection.

Configurator

A configurator object implementing default behaviour.

DispenserStorage

A mini-database of dispensers.

ICollection

A collection for coil.

IConfigCollection

A coil collection to which objects can be added.

IConfigurator

A configurator object.

IStaticCollection

A coil collection to which we can't add items.

InvalidConfiguration

I am is raised in the case of an invalid configuration.

StaticCollection

A roots.Locked that implement IStaticCollection.


Table of Contents

This document was automatically generated on Sun Jul 14 19:52:33 2002 by HappyDoc version 2.0