Function
zope.configuration.config.provides

Signature

provides(context, feature)

Documentation String

Declare that a feature is provided in context.

>>> c = ConfigurationContext()
>>> provides(c, 'apidoc')
>>> c.hasFeature('apidoc')
True

Spaces are not allowed in feature names (this is reserved for providing many features with a single directive in the futute).

>>> provides(c, 'apidoc onlinehelp')
Traceback (most recent call last):
  ...
ValueError: Only one feature name allowed
>>> c.hasFeature('apidoc onlinehelp')
False