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`.
There are no implemented interfaces.
There are no attributes in this class.
allow(_context, attributes=None, interface=None)
Like require, but with permission_id zope.Public
factory(_context, id=None, title='', description='')
Register a zmi factory for this class
implements(_context, interface)
require(_context, permission=None, attributes=None, interface=None, like_class=None, set_attributes=None, set_schema=None)
Require a permission to access a specific aspect
There are no known subclasses.