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

All Samples(245)  |  Call(131)  |  Derive(0)  |  Import(114)
aq_chain(ob [, containment]) -- Get a list of objects in the acquisition environment

src/e/u/Euphorie-6.3.1/src/euphorie/client/utils.py   Euphorie(Download)
from decorator import decorator
from Acquisition import aq_base
from Acquisition import aq_chain
from Acquisition import aq_inner
from Acquisition import aq_parent
    def __init__(self, context, request):
        super(WebHelpers, self).__init__(context, request)
        for obj in aq_chain(aq_inner(context)):
            if IClientSector.providedBy(obj):
                self.sector = obj
    def country(self):
        from euphorie.client.country import IClientCountry
        for obj in aq_chain(aq_inner(self.context)):
            if IClientCountry.providedBy(obj):
                return obj.id
 
        from euphorie.client.country import IClientCountry
        for parent in aq_chain(aq_inner(self.context)):
            if IClientCountry.providedBy(parent):
                return parent.absolute_url()

src/c/o/collective.categorizing-0.2.3/collective/categorizing/adapter/category.py   collective.categorizing(Download)
from zope.component import adapts
from zope.interface import implements
from Acquisition import aq_base, aq_inner, aq_chain, aq_parent
from zope.app.component.hooks import getSite
from Products.CMFCore.utils import getToolByName
    def content_query(self):
        context = aq_inner(self.context)
        chain = aq_chain(context)
        obj_index = [chain.index(obj) for obj in chain if hasattr(obj, 'Type') and obj.Type() == u'CategoryContainer']
        index = obj_index[0] + 1
    def subcategory_query(self):
        context = aq_inner(self.context)
        chain = aq_chain(context)
        obj_index = [chain.index(obj) for obj in chain if hasattr(obj, 'Type') and obj.Type() == u'CategoryContainer']
        index = obj_index[0]
    def __call__(self):
        base = aq_base(self.context)
        catalog = getToolByName(getSite(), 'portal_catalog')
        category = catalog(UID=base.UID())[0].getObject()
        chain = aq_chain(aq_inner(category))
    def chain(self):
        base = aq_base(self.context)
        catalog = getToolByName(getSite(), 'portal_catalog')
        category = catalog(UID=base.UID())[0].getObject()
        chain = aq_chain(aq_inner(category))

src/e/u/Euphorie-6.3.1/src/euphorie/content/sector.py   Euphorie(Download)
import zExceptions
from Acquisition import aq_base
from Acquisition import aq_chain
from Acquisition import aq_inner
from zope.interface import implements
    """
    current_version = None
    for sector in aq_chain(aq_inner(context)):
        if ISurvey.providedBy(sector):
            current_version = aq_base(sector)

src/e/u/Euphorie-6.3.1/src/euphorie/deployment/tiles/versions.py   Euphorie(Download)
from Acquisition import aq_chain
from Acquisition import aq_inner
from plone.tiles import Tile
from euphorie.content.sector import ISector
from euphorie.content.sector import getSurveys
    def update(self):
        for sector in aq_chain(aq_inner(self.context)):
            if ISector.providedBy(sector):
                break
        else:

src/c/o/collective.categorizing-0.2.3/collective/categorizing/subscriber/events.py   collective.categorizing(Download)
from Acquisition import aq_chain, aq_inner, aq_parent
from zope.component import adapter
from zope.lifecycleevent.interfaces import IObjectModifiedEvent
from zope.app.container.interfaces import IObjectAddedEvent, IObjectMovedEvent, IObjectRemovedEvent
from Products.Archetypes.interfaces import IObjectInitializedEvent
            return None
        if len(bs) == 1 and brains[0].Title == content.Title():
            container = [obj for obj in aq_chain(aq_inner(content)) if hasattr(obj, 'Type') and obj.Type() == u'CategoryContainer'][0]
            for brain in catalog(
                path='/'.join(aq_inner(container).getPhysicalPath()),

src/e/u/Euphorie-6.3.1/src/euphorie/content/user.py   Euphorie(Download)
import re
from Acquisition import aq_base
from Acquisition import aq_chain
from Acquisition import aq_inner
from Acquisition import aq_parent
    def validate(self, value):
        super(UniqueLoginValidator, self).validate(value)
 
        site = getUtility(ISiteRoot)
        for parent in aq_chain(site):

src/e/u/Euphorie-6.3.1/src/euphorie/content/risk.py   Euphorie(Download)
import sys
from Acquisition import aq_base
from Acquisition import aq_chain
from Acquisition import aq_inner
from Acquisition import aq_parent
    """
    from euphorie.content.surveygroup import ISurveyGroup  # XXX Circular
    for parent in aq_chain(aq_inner(context)):
        if IFrenchEvaluation.providedBy(parent):
            return u"french"

src/n/u/NuPlone-1.4.0/plonetheme/nuplone/skin/error.py   NuPlone(Download)
import logging
from Acquisition import aq_base
from Acquisition import aq_inner
from Acquisition import aq_chain
from Acquisition import aq_parent
    def authenticate(self):
        """Try to authenticate the user manually, since ZPublisher dropped the
        user whenn it failed to validate access."""
        for parent in aq_chain(aq_inner(self.context)):
            if hasattr(aq_base(parent), "acl_users"):

src/p/l/plone.app.discussion-2.3.2/plone/app/discussion/browser/conversation.py   plone.app.discussion(Download)
 
from Acquisition import aq_base
from Acquisition import aq_chain
from Acquisition import aq_inner
 
        def traverse_parents(context):
            # Run through the aq_chain of obj and check if discussion is
            # enabled in a parent folder.
            for obj in aq_chain(context):
                if not IPloneSiteRoot.providedBy(obj):

src/a/g/agsci.blognewsletter-0.4/agsci/blognewsletter/patch.py   agsci.blognewsletter(Download)
from Acquisition import aq_base, aq_inner, aq_chain
from agsci.blognewsletter.content.interfaces import IBlog
 
def getAvailableTags(self):
    """Products.ATContentTypes.content.newsitem.ATNewsItem"""
 
    tags = []
    for i in aq_chain(self):

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