vocabulary (http://namespaces.zope.org/zope)

BBB: DEPRECATED

The vocabulary directive has been deprecated and will be removed in Zope 3.5. Use the utility directive instead to register the class as a named utility:

Example:

  <utility
      provides="zope.schema.interfaces.IVocabularyFactory"
      component="zope.app.gary.paths.Favorites"
      name="garys-favorite-path-references"
      />

Previous documentation

Define a named vocabulary.

This associates a vocabulary name in the global vocabulary registry with a factory. Each name may only be defined once.

Additional keyword arguments may be passed to the factory by adding additional attributes beyond those listed here. This can be useful when using vocabularies which implement various kinds of filtering.

Example:

   <vocabulary
       name="garys-favorite-path-references"
       factory="zope.app.gary.paths.Favorites" />


File: Zope3/zope.app.schema-3.4.0-py2.4.egg/zope/app/schema/meta.zcml from (line 6, column 2) to (line 10, column 44)
Handler: zope.app.schema.metaconfigure.vocabulary

Schema

zope.app.schema.metadirectives.IVocabularyDirective

* = required