Class
zope.app.interface.vocabulary.ObjectInterfacesVocabulary

A vocabulary that provides a list of all interfaces that its context provides.

Here a quick demonstration:

>>> from zope.interface import Interface, implements
>>> class I1(Interface):
...     pass
>>> class I2(Interface):
...     pass
>>> class I3(I2):
...     pass
>>> class Object(object):
...     implements(I3, I1)
>>> vocab = ObjectInterfacesVocabulary(Object())
>>> import pprint
>>> names = [term.token for term in vocab]
>>> names.sort()
>>> pprint.pprint(names)
['zope.app.interface.vocabulary.I1',
 'zope.app.interface.vocabulary.I2',
 'zope.app.interface.vocabulary.I3',
 'zope.interface.Interface']

Base classes

Implemented Interfaces

Attributes/Properties

There are no attributes in this class.

Methods

Known Subclasses