def getPlugins(interface, package=None):
 if (package is None):
  import twisted.plugins as package
 allDropins = getCache(package)
 for dropin in allDropins.itervalues():
  for plugin in dropin.plugins:
   try:
    adapted = interface(plugin, None)
   except:
    log.err()
   else:
    if (adapted is not None):
     (yield adapted)

def getPlugins ( interface , package = None ) : if ( package is None ) : import twisted . plugins as package allDropins = getCache ( package ) for dropin in allDropins . itervalues ( ) : for plugin in dropin . plugins : try : adapted = interface ( plugin , None ) except : log . err ( ) else : if ( adapted is not None ) : ( yield adapted )
retrieve all plugins implementing the given interface beneath the given module .