Beispiel #1
0
 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)
Beispiel #2
0
    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)