Did I find the right examples for you? yes no

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

src/c/o/collective.lineage-1.1/src/collective/lineage/subscribers.py   collective.lineage(Download)
def enableChildSite(event):
    """When a lineage folder is created, turn it into a component site
    """
    if not IChildSite.providedBy(event.object):
        return

src/c/o/collective.lineage-1.1/src/collective/lineage/browser.py   collective.lineage(Download)
    def isChildSite(self):
        portal_state = self.context.restrictedTraverse('plone_portal_state')
        root_path = portal_state.navigation_root_path()
        nav_root = self.context.restrictedTraverse(root_path)
        return IChildSite.providedBy(nav_root)

src/c/o/collective.lineage-HEAD/src/collective/lineage/subscribers.py   collective.lineage(Download)
def enableChildSite(event):
    """When a lineage folder is created, turn it into a component site
    """
    if not IChildSite.providedBy(event.object):
        return

src/c/o/collective.lineage-HEAD/src/collective/lineage/browser.py   collective.lineage(Download)
    def isChildSite(self):
        portal_state = self.context.restrictedTraverse('plone_portal_state')
        root_path = portal_state.navigation_root_path()
        nav_root = self.context.restrictedTraverse(root_path)
        return IChildSite.providedBy(nav_root)

src/l/i/lineage.themeselection-1.3/src/lineage/themeselection/action.py   lineage.themeselection(Download)
    def __call__(self):
        return IChildSite.providedBy(self.context)
 

src/l/i/lineage.themeselection-HEAD/src/lineage/themeselection/action.py   lineage.themeselection(Download)
    def __call__(self):
        return IChildSite.providedBy(self.context)