Ejemplo n.º 1
0
 def _getDirectMarkersOf(self, base):
     """Get empty interfaces directly inheriting from the given one.
     """
     results = []
     interfaces = searchInterface(None, base=base)
     for interface in interfaces:
         # There are things registered with the interface service
         # that are not interfaces. Yay!
         if not IInterface.providedBy(interface):
             continue
         if base in interface.__bases__ and not interface.names():
             results.append(interface)
     results.sort()
     return tuple(results)
Ejemplo n.º 2
0
 def _getDirectMarkersOf(self, base):
     """Get empty interfaces directly inheriting from the given one.
     """
     results = []
     interfaces = searchInterface(None, base=base)
     for interface in interfaces:
         # There are things registered with the interface service
         # that are not interfaces. Yay!
         if not IInterface.providedBy(interface):
             continue
         if base in interface.__bases__ and not interface.names():
             results.append(interface)
     results.sort()
     return tuple(results)
Ejemplo n.º 3
0
 def _callFUT(self, *args, **kw):
     from zope.component.interface import searchInterface
     return searchInterface(*args, **kw)
 def _callFUT(self, *args, **kw):
     from zope.component.interface import searchInterface
     return searchInterface(*args, **kw)