def getImplementsOfInstanceOf(self, klass): """ returns the interfaces implemented by the klass (flat)""" impl = getImplementsOfInstances(klass) if not isinstance(impl, tuple): impl = (impl,) if impl: return flattenInterfaces(impl)
def getImplementsOfInstanceOf(self, klass): """ returns the interfaces implemented by the klass (flat)""" from Interface.Implements import getImplementsOfInstances, flattenInterfaces impl = getImplementsOfInstances(klass) if type(impl) is not TupleType: impl = (impl,) if impl: return flattenInterfaces(impl)