Class
zope.configuration.config.ConfigurationMachine

Configuration machine

Example:

>>> machine = ConfigurationMachine()
>>> ns = "http://www.zope.org/testing"

Register a directive:

>>> machine((metans, "directive"),
...         namespace=ns, name="simple",
...         schema="zope.configuration.tests.directives.ISimple",
...         handler="zope.configuration.tests.directives.simple")

and try it out:

>>> machine((ns, "simple"), a=u"aa", c=u"cc")
>>> machine.actions
[(('simple', u'aa', u'xxx', 'cc'), f, (u'aa', u'xxx', 'cc'))]

A more extensive example can be found in the unit tests.

Base classes

Implemented Interfaces

Attributes/Properties

Methods

Known Subclasses

There are no known subclasses.