Did I find the right examples for you? yes no

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)
Test whether an interface is implemented by the specification

src/p/r/Products.Silva-3.0.4/Products/Silva/Ghost/content.py   Products.Silva(Download)
    def need_update(self):
        if IGhost.providedBy(self.manager.ghost):
            viewable = self.manager.ghost.get_viewable()
            return self.target != viewable.get_haunted()
        return IContent.providedBy(self.manager.ghost)
    def validate(self, target, adding=False):
        error = super(GhostManager, self).validate(target, adding)
        if error is None:
            if not IContent.providedBy(target):
                return ContentInvalidTarget()

src/p/r/Products.Silva-3.0.4/Products/Silva/Indexer/content.py   Products.Silva(Download)
                continue
 
            if IContent.providedBy(content) and content.is_default():
                # We skip default contents.
                continue

src/p/r/Products.Silva-3.0.4/Products/Silva/Folder/content.py   Products.Silva(Download)
    def get_default(self):
        """Get the default content object of the folder.
        """
        content = self._getOb('index', None)
        if IContent.providedBy(content):

src/s/i/silva.app.subscriptions-3.0.3/src/silva/app/subscriptions/upgrader/upgrade_300.py   silva.app.subscriptions(Download)
    def validate(self, content):
        return (hasattr(aq_base(content), '__subscribability__') and
                (IContent.providedBy(content) or
                 IContainer.providedBy(content)))
 

src/s/i/silva.core.views-3.0.2/src/silva/core/views/absoluteurl.py   silva.core.views(Download)
 
        if (not IDisableBreadcrumbTag.providedBy(self.context) and
            (not IContent.providedBy(self.context) or
             not self.context.is_default())):
            base += ({'name': name, 'url': self.__str__()},)

src/s/i/silva.searchandreplace-2.2/silva/searchandreplace/SearchReplaceService.py   silva.searchandreplace(Download)
            if IContainer.providedBy(current):
                buffer += current.objectValues()
            elif IContent.providedBy(current):
                content_objects = self._get_content_objects(current)
                processed += len(content_objects)