Exemplo n.º 1
0
 def getGenericRequiredAdapters(self):
     """Get adapters where this interface is required."""
     # Must remove security and location proxies, so that we have access to
     # the API methods and class representation.
     iface = removeAllProxies(self.context)
     regs = component.getRequiredAdapters(iface)
     regs = tuple(component.filterAdapterRegistrations(
         regs, iface,
         level=component.GENERIC_INTERFACE_LEVEL))
     return [component.getAdapterInfoDictionary(reg)
             for reg in regs]