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

All Samples(67)  |  Call(30)  |  Derive(0)  |  Import(37)
aq_acquire(ob, name [, filter, extra, explicit]) -- Get an attribute, acquiring it if necessary

src/z/o/Zope2-2.13.22/src/OFS/Cache.py   Zope2(Download)
from AccessControl.SecurityManagement import getSecurityManager
from AccessControl.unauthorized import Unauthorized
from Acquisition import aq_acquire
from Acquisition import aq_base
from Acquisition import aq_get
        try:
            return aq_acquire(
                self, manager_id, containment=1,
                filter=filterCacheManagers, extra=None, default=None)
        except AttributeError:

src/z/o/Zope-HEAD/src/OFS/Cache.py   Zope(Download)
from AccessControl.SecurityManagement import getSecurityManager
from AccessControl.unauthorized import Unauthorized
from Acquisition import aq_acquire
from Acquisition import aq_base
from Acquisition import aq_get
        try:
            return aq_acquire(
                self, manager_id, containment=1,
                filter=filterCacheManagers, extra=None, default=None)
        except AttributeError:

src/z/o/Zope2-2.13.22/src/Zope2/App/startup.py   Zope2(Download)
from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManagement import noSecurityManager
from Acquisition import aq_acquire
from Acquisition import aq_base
from Acquisition import aq_inner
 
            try:
                log = aq_acquire(published, '__error_log__', containment=1)
            except AttributeError:
                error_log_url = ''

src/z/o/Zope-HEAD/src/Zope2/App/startup.py   Zope(Download)
from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManagement import noSecurityManager
from Acquisition import aq_acquire
from Acquisition import aq_base
from Acquisition import aq_inner
            if not isinstance(published, list):
                try:
                    log = aq_acquire(published, '__error_log__', containment=1)
                except AttributeError:
                    pass

src/a/c/AccessControl-3.0.8/src/AccessControl/ImplPython.py   AccessControl(Download)
from logging import getLogger
 
from Acquisition import aq_acquire
from Acquisition import aq_base
from Acquisition import aq_inner
                else:
                    # Try to acquire roles
                    try: roles = aq_acquire(container, '__roles__')
                    except AttributeError:
                        if containerbase is not accessedbase:
    # v or it will return an Unauthorized raised by validate.
    validate = getSecurityManager().validate
    aq_acquire(inst, name, aq_validate, validate)
 
    return v

src/z/o/Zope2-2.13.22/src/OFS/Traversable.py   Zope2(Download)
from AccessControl.ZopeGuards import guarded_getattr
from Acquisition import Acquired
from Acquisition import aq_acquire
from Acquisition import aq_base
from Acquisition import aq_inner
                        try:
                            next = namespaceLookup(
                                ns, nm, obj, aq_acquire(self, 'REQUEST'))
                            if IAcquirer.providedBy(next):
                                next = next.__of__(obj)
                except (AttributeError, NotFound, KeyError), e:
                    # Try to look for a view
                    next = queryMultiAdapter((obj, aq_acquire(self, 'REQUEST')),
                                             Interface, name)
 

src/z/o/Zope-HEAD/src/OFS/Traversable.py   Zope(Download)
from AccessControl.ZopeGuards import guarded_getattr
from Acquisition import Acquired
from Acquisition import aq_acquire
from Acquisition import aq_base
from Acquisition import aq_inner
                        try:
                            next = namespaceLookup(
                                ns, nm, obj, aq_acquire(self, 'REQUEST'))
                            if IAcquirer.providedBy(next):
                                next = next.__of__(obj)
                except (AttributeError, NotFound, KeyError), e:
                    # Try to look for a view
                    next = queryMultiAdapter((obj, aq_acquire(self, 'REQUEST')),
                                             Interface, name)
 

src/e/r/erp5-HEAD/product/ERP5Type/patches/Restricted.py   erp5(Download)
 
 
from Acquisition import aq_acquire
from AccessControl import getSecurityManager
from AccessControl.ZopeGuards import (safe_builtins, _marker, Unauthorized,
  def factory(inst, name):
    if not (name == 'fromkeys' and type(inst) is dict):
      # fallback to default security
      aq_acquire(inst, name, aq_validate, getSecurityManager().validate)
    return v

src/z/o/Zope2-2.13.22/src/OFS/SimpleItem.py   Zope2(Download)
from AccessControl.ZopeSecurityPolicy import getRoles
from Acquisition import Acquired
from Acquisition import aq_acquire
from Acquisition import aq_base
from Acquisition import aq_inner
 
            if not REQUEST:
                REQUEST = aq_acquire(self, 'REQUEST')
 
            try:
                s = aq_acquire(client, 'standard_error_message')

src/z/o/Zope-HEAD/src/OFS/SimpleItem.py   Zope(Download)
from AccessControl.ZopeSecurityPolicy import getRoles
from Acquisition import Acquired
from Acquisition import aq_acquire
from Acquisition import aq_base
from Acquisition import aq_inner
 
            if not REQUEST:
                REQUEST = aq_acquire(self, 'REQUEST')
 
            try:
                s = aq_acquire(client, 'standard_error_message')

  1 | 2 | 3 | 4  Next