Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/z/o/Zope2-2.13.22/src/ZPublisher/BaseRequest.py   Zope2(Download)
                        # We don't need to do the docstring security check
                        # for views, so lets skip it and return the object here.
                        if IAcquirer.providedBy(subobject):
                            subobject = subobject.__of__(object)
                        return subobject
                                              name)
                if subobject is not None:
                    if IAcquirer.providedBy(subobject):
                        subobject = subobject.__of__(object)
                    return subobject
                    raise ztkNotFound(ob, name)
 
                if IAcquirer.providedBy(ob2):
                    ob2 = ob2.__of__(ob)
                return ob2

src/z/o/Zope2-2.13.22/src/Zope2/App/startup.py   Zope2(Download)
            view = queryMultiAdapter((v, REQUEST), name=u'index.html')
            if view is not None:
                if IAcquirer.providedBy(view) and IAcquirer.providedBy(published):
                    view = view.__of__(published)
                else:

src/z/o/Zope-HEAD/src/ZPublisher/BaseRequest.py   Zope(Download)
                        # We don't need to do the docstring security check
                        # for views, so lets skip it and return the object here.
                        if IAcquirer.providedBy(subobject):
                            subobject = subobject.__of__(object)
                        return subobject
                                              name)
                if subobject is not None:
                    if IAcquirer.providedBy(subobject):
                        subobject = subobject.__of__(object)
                    return subobject
                    raise ztkNotFound(ob, name)
 
                if IAcquirer.providedBy(ob2):
                    ob2 = ob2.__of__(ob)
                return ob2

src/z/o/Zope-HEAD/src/Zope2/App/startup.py   Zope(Download)
            view = queryMultiAdapter((v, REQUEST), name=u'index.html')
            if view is not None:
                if IAcquirer.providedBy(view) and IAcquirer.providedBy(published):
                    view = view.__of__(published)
                else:

src/f/i/five.localsitemanager-2.0.5/src/five/localsitemanager/registry.py   five.localsitemanager(Download)
    if isinstance(comp, ComponentPathWrapper):
        comp = getSite().unrestrictedTraverse(comp.path)
        if IAcquirer.providedBy(comp):
            return _rewrap(comp)
        else:
    # local) components.
 
    if registry.__bases__ and IAcquirer.providedBy(comp):
        current_site = getSite()
        registry_site = Acquisition.aq_base(registry.__parent__)

src/i/n/infrae.wsgi-2.2.1/src/infrae/wsgi/publisher.py   infrae.wsgi(Download)
            # an IAcquirer)
            last_known_obj = last_known_obj.context
        if not IAcquirer.providedBy(last_known_obj):
            last_known_site = getSite()
            if last_known_site is not None:
                last_known_obj = last_known_site
        context = DefaultError(error)
        if IAcquirer.providedBy(last_known_obj):

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/utils.py   Products.CMFCore(Download)
            # utilities. If the result is something which is acquisition-unaware
            # but unwrapped we wrap it on the context.
            if IAcquirer.providedBy(obj) and \
                    aq_parent(utility) is None and \
                    IAcquirer.providedBy(utility):

src/z/o/Zope2-2.13.22/src/OFS/Traversable.py   Zope2(Download)
                            next = namespaceLookup(
                                ns, nm, obj, aq_acquire(self, 'REQUEST'))
                            if IAcquirer.providedBy(next):
                                next = next.__of__(obj)
                            if restricted and not validate(
 
                    if next is not None:
                        if IAcquirer.providedBy(next):
                            next = next.__of__(obj)
                        if restricted and not validate(obj, obj, name, next):

src/z/o/Zope-HEAD/src/OFS/Traversable.py   Zope(Download)
                            next = namespaceLookup(
                                ns, nm, obj, aq_acquire(self, 'REQUEST'))
                            if IAcquirer.providedBy(next):
                                next = next.__of__(obj)
                            if restricted and not validate(
 
                    if next is not None:
                        if IAcquirer.providedBy(next):
                            next = next.__of__(obj)
                        if restricted and not validate(obj, obj, name, next):

src/p/l/plone.app.viewletmanager-2.0.5/plone/app/viewletmanager/manager.py   plone.app.viewletmanager(Download)
        # Copied from Five
        for name, viewlet in viewlets:
            if IAcquirer.providedBy(viewlet):
                viewlet = viewlet.__of__(viewlet.context)
            if name not in hidden and guarded_hasattr(viewlet, 'render'):
            results = []
            for index, (name, viewlet) in enumerate(viewlets):
                if IAcquirer.providedBy(viewlet):
                    viewlet = viewlet.__of__(viewlet.context)
                viewlet_id = "%s:%s" % (self.__name__, name)

  1 | 2 | 3 | 4  Next