Class
zope.app.component.contentdirective.LocalUtilityDirective

BBB: DEPRECATED

The localUtility directive has been deprecated and will be removed after 09/2007.

Use class directive with additional subdirective <implements interface="zope.annotation.interfaces.IAttributeAnnotatable" />

Deprecated examples:

>>> from zope.interface import implements
>>> class LU1(object):
...     pass
>>> class LU2(LU1):
...     implements(ILocation)
>>> class LU3(LU1):
...     __parent__ = None
>>> class LU4(LU2):
...     implements(IPersistent)
>>> dir = LocalUtilityDirective(None, LU4)
>>> IAttributeAnnotatable.implementedBy(LU4)
True
>>> LocalUtilityDirective(None, LU3)
Traceback (most recent call last):
...
ConfigurationError: Class `LU3` does not implement `IPersistent`.
>>> LocalUtilityDirective(None, LU2)
Traceback (most recent call last):
...
ConfigurationError: Class `LU2` does not implement `IPersistent`.
>>> LocalUtilityDirective(None, LU1)
Traceback (most recent call last):
...
ConfigurationError: Class `LU1` does not implement `ILocation`.

Base classes

Implemented Interfaces

There are no implemented interfaces.

Attributes/Properties

There are no attributes in this class.

Methods

Known Subclasses

There are no known subclasses.