Did I find the right examples for you? yes no

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)
Test whether the specification is implemented by a class or factory.
Raise TypeError if argument is neither a class nor a callable.

src/s/i/silva.core.conf-3.0.3/src/silva/core/conf/installer.py   silva.core.conf(Download)
        cls = content['instance']
        return (ISilvaObject.implementedBy(cls) and
                not IVersion.implementedBy(cls))
 
    def is_silva_content(self, content):
        cls = content['instance']
        return (ISilvaObject.implementedBy(cls) or
                IVersion.implementedBy(cls))
 
    def has_default_metadata(self, content):
        return ((ISilvaObject.implementedBy(cls) and
                 not interfaces.IVersionedObject.implementedBy(cls)) or
                IVersion.implementedBy(cls))
 
    def configure_content(self, root, extension):
                if self.has_default_metadata(content):
                    if (IViewableObject.implementedBy(content['instance']) or
                        IVersion.implementedBy(content['instance'])):
                        viewables.append(content['name'])
                    else:

src/s/i/silva.core.conf-3.0.3/src/silva/core/conf/utils.py   silva.core.conf(Download)
        if interfaces.IVersionedObject.providedBy(container):
            # In a Versioned object, you can add version.
            return interfaces.IVersion.implementedBy(content)
 
        return False