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

All Samples(251)  |  Call(144)  |  Derive(0)  |  Import(107)
aq_get(ob, name [, default]) -- Get an attribute, acquiring it if necessary.

src/z/o/Zope2-2.13.22/src/OFS/Cache.py   Zope2(Download)
from Acquisition import aq_acquire
from Acquisition import aq_base
from Acquisition import aq_get
from Acquisition import aq_inner
from Acquisition import aq_parent
def managersExist(ob):
    # Returns 1 if any CacheManagers exist in the context of ob.
    if aq_get(ob, ZCM_MANAGERS, None, 1):
        return 1
    return 0

src/z/o/Zope-HEAD/src/OFS/Cache.py   Zope(Download)
from Acquisition import aq_acquire
from Acquisition import aq_base
from Acquisition import aq_get
from Acquisition import aq_inner
from Acquisition import aq_parent
def managersExist(ob):
    # Returns 1 if any CacheManagers exist in the context of ob.
    if aq_get(ob, ZCM_MANAGERS, None, 1):
        return 1
    return 0

src/a/c/AccessControl-3.0.8/src/AccessControl/owner.py   AccessControl(Download)
 
from Acquisition import aq_base
from Acquisition import aq_get
from Acquisition import aq_inner
from Acquisition import aq_parent
def ownableFilter(self):
    _owner = aq_get(self, '_owner', None, 1)
    return _owner is not UnownableOwner
 
# Marker to use as a getattr default.
        o If unowned, return None.
        """
        return aq_get(self, '_owner', None, 1)
 
    security.declarePrivate('getWrappedOwner')
    def manage_fixupOwnershipAfterAdd(self):
        # Sigh, get the parent's _owner
        parent=getattr(self, '__parent__', None)
        if parent is not None: _owner=aq_get(parent, '_owner', None, 1)
        else: _owner=None

src/p/r/Products.validation-2.0/Products/validation/validators/IdValidator.py   Products.validation(Download)
from Acquisition import aq_parent
from Acquisition import aq_inner
from Acquisition import aq_base
from Acquisition import aq_get
from zExceptions import BadRequest
    def __call__(self, id, instance, *args, **kwargs):
        try:
            # try to use the check_id script of CMFPlone
            check_id = aq_get(instance, 'check_id', None, 1)
            if check_id is None:

src/p/r/Products.CMFQuickInstallerTool-3.0.6/Products/CMFQuickInstallerTool/QuickInstallerTool.py   Products.CMFQuickInstallerTool(Download)
from AccessControl import ClassSecurityInfo
from AccessControl.requestmethod import postonly
from Acquisition import aq_base, aq_parent, aq_get, aq_inner
 
from Globals import DevelopmentMode
        # without a RequestContainer. This breaks import steps that need
        # to run tools which request self.REQUEST.
        portal_setup = aq_get(portal, 'portal_setup', None, 1)
        status=None
        res=''

src/z/o/Zope2-2.13.22/src/OFS/owner.py   Zope2(Download)
import urlparse
 
from Acquisition import aq_get
from Acquisition import aq_parent
 
            if old is None:
                return
            new = aq_get(aq_parent(self), '_owner', None, 1)
            _m = object()
            if old is new and (self.__dict__.get('_owner', _m) is not _m):

src/a/c/AccessControl-3.0.8/src/AccessControl/rolemanager.py   AccessControl(Download)
from Acquisition import Acquired
from Acquisition import aq_base
from Acquisition import aq_get
from ExtensionClass import Base
from zope.interface import implements
def _isBeingUsedAsAMethod(self):
    return aq_get(self, '_isBeingUsedAsAMethod_', 0)
 
 
def _isNotBeingUsedAsAMethod(self):
    return not aq_get(self, '_isBeingUsedAsAMethod_', 0)

src/z/o/Zope-HEAD/src/OFS/owner.py   Zope(Download)
import urlparse
 
from Acquisition import aq_get
from Acquisition import aq_parent
 
            if old is None:
                return
            new = aq_get(aq_parent(self), '_owner', None, 1)
            _m = object()
            if old is new and (self.__dict__.get('_owner', _m) is not _m):

src/p/r/Products.ZCatalog-3.0.2/src/Products/ZCatalog/CatalogBrains.py   Products.ZCatalog(Download)
from .interfaces import ICatalogBrain
from Acquisition import aq_base
from Acquisition import aq_get
from Acquisition import aq_parent
from Acquisition import Implicit
    def getURL(self, relative=0):
        """Generate a URL for this record"""
        request = aq_get(self, 'REQUEST', None)
        if request is None and _GLOBALREQUEST_INSTALLED:
            request = getRequest()
        """
        parent = aq_parent(self)
        if (aq_get(parent, 'REQUEST', None) is None
            and _GLOBALREQUEST_INSTALLED and _REQUESTCONTAINER_EXISTS):
            request = getRequest()
            return None
        parent = aq_parent(self)
        if (aq_get(parent, 'REQUEST', None) is None
            and _GLOBALREQUEST_INSTALLED and _REQUESTCONTAINER_EXISTS):
            request = getRequest()

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/utils.py   Products.CMFCore(Download)
from AccessControl.SecurityManagement import getSecurityManager
from Acquisition.interfaces import IAcquirer
from Acquisition import aq_get
from Acquisition import aq_parent
from Acquisition import Implicit
 
    try:
        tool = aq_get(obj, name, default, 1)
    except AttributeError:
        if default is _marker:

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next