searchInterface(context, search_string=None, base=None)
Interfaces search
>>> from zope.interface import Interface >>> from zope.interface.interfaces import IInterface >>> from zope.component.tests import ITestType
>>> class I5(Interface): ... pass >>> IInterface.providedBy(I5) True >>> ITestType.providedBy(I5) False >>> searchInterface(None, 'zope.component.interface.I5') [] >>> provideInterface('', I5, ITestType) >>> ITestType.providedBy(I5) True >>> iface = searchInterface(None, 'zope.component.interface.I5') >>> iface[0].__name__ 'I5'