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

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)
aq_inContextOf(base, ob [, inner]) -- Determine whether the object is in the acquisition context of base.

src/a/c/AccessControl-3.0.8/src/AccessControl/ImplPython.py   AccessControl(Download)
from Acquisition import aq_base
from Acquisition import aq_inner
from Acquisition import aq_inContextOf
from Acquisition import aq_parent
from ExtensionClass import Base
            # This is a method.  Grab its self.
            object=object.im_self
        if not aq_inContextOf(object, ucontext, 1):
            if 'Shared' in object_roles:
                # Old role setting. Waaa

src/a/c/AccessControl-3.0.8/src/AccessControl/users.py   AccessControl(Download)
import socket
 
from Acquisition import aq_inContextOf
from Acquisition import aq_parent
from Acquisition import Implicit
                # This is a method.  Grab its self.
                object = object.im_self
            return aq_inContextOf(object, context, 1)
 
        # This is lame, but required to keep existing behavior.

src/z/o/Zope2-2.13.22/src/Products/Five/bbb.py   Zope2(Download)
    def aq_inContextOf(self, *args, **kw):
        return Acquisition.aq_inContextOf(self, *args, **kw)
 

src/z/o/Zope-HEAD/src/Products/Five/bbb.py   Zope(Download)
    def aq_inContextOf(self, *args, **kw):
        return Acquisition.aq_inContextOf(self, *args, **kw)