コード例 #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)
コード例 #2
0
ファイル: marker.py プロジェクト: goschtl/zope
 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)
コード例 #3
0
ファイル: test_interface.py プロジェクト: dcredpanda/atsv
 def _callFUT(self, *args, **kw):
     from zope.component.interface import searchInterface
     return searchInterface(*args, **kw)
コード例 #4
0
 def _callFUT(self, *args, **kw):
     from zope.component.interface import searchInterface
     return searchInterface(*args, **kw)