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

All Samples(5638)  |  Call(3508)  |  Derive(0)  |  Import(2130)
aq_inner(ob) -- Get the object with all but the innermost wrapper removed

src/f/t/ftw.publisher.example-1.0/ftw/publisher/example/utils.py   ftw.publisher.example(Download)
from Acquisition import aq_parent, aq_inner, aq_base
from Products.CMFCore.utils import getToolByName
from Products.CMFPlone.interfaces import IPloneSiteRoot
from Products.statusmessages.interfaces import IStatusMessage
from ftw.publisher.example import _
    Source: http://svn.plone.org/svn/collective/collective.indexing/trunk/collective/indexing/subscribers.py
    """
    parent = aq_parent(aq_inner(obj))
    if parent is None:
        return True
    if not workflow:
        # no workflow defined for this object - check the workflow of the parent
        return is_published(aq_parent(aq_inner(obj)))
 
    wf_tool = getToolByName(obj, 'portal_workflow')
    errors = []
    warnings = []
    parent = aq_parent(aq_inner(obj))
    request = obj.REQUEST
 

src/c/o/collective.watcherlist-1.2/collective/watcherlist/sample/browser.py   collective.watcherlist(Download)
from Acquisition import aq_inner
from Products.Five.browser import BrowserView
from collective.watcherlist.browser import BaseMail
from collective.watcherlist.interfaces import IWatcherList
 
    def __call__(self):
        context = aq_inner(self.context)
        watchers = IWatcherList(context)
        email = self.request.form.get('email')
        if email:
    def is_watching(self):
        context = aq_inner(self.context)
        watchers = IWatcherList(context)
        return watchers.isWatching()
 
 
class SubscriptionOverview(BrowserView):
 
    def __call__(self):
        context = aq_inner(self.context)

src/e/x/example.conference-HEAD/example/conference/session.py   example.conference(Download)
from Acquisition import aq_inner, aq_parent
from example.conference import _
from example.conference.presenter import IPresenter
from five import grok
from plone.app.textfield import RichText
    from example.conference.program import IProgram
    while context is not None and not IProgram.providedBy(context):
        context = aq_parent(aq_inner(context))
 
    values = []

src/e/x/example.conference-HEAD/example/conference/program.py   example.conference(Download)
from Acquisition import aq_inner
from DateTime import DateTime
from Products.CMFCore.utils import getToolByName
from example.conference import _
from example.conference.session import ISession
    def sessions(self):
        """Return a catalog search result of sessions to show
        """
 
        context = aq_inner(self.context)

src/p/l/plone.app.layout-2.5.1/plone/app/layout/globals/context.py   plone.app.layout(Download)
from plone.memoize.view import memoize
 
from Acquisition import aq_base, aq_inner, aq_parent
from Products.Five.browser import BrowserView
 
    def canonical_object(self):
        context = aq_inner(self.context)
        if self.is_default_page():
            return aq_parent(context)
        else:
    def view_template_id(self):
        context = aq_inner(self.context)
 
        if IBrowserDefault.providedBy(context):
            browserDefault = context
        if last_part == 'view':
            return True
        context = aq_inner(self.context)
        browserDefault = IBrowserDefault(context, None)
        if browserDefault is not None:
    def object_title(self):
        context = aq_inner(self.context)
        return utils.pretty_title_or_id(context, context)
 
    @memoize

src/p/l/plone.app.layout-HEAD/plone/app/layout/globals/context.py   plone.app.layout(Download)
from plone.memoize.view import memoize
 
from Acquisition import aq_base, aq_inner, aq_parent
from Products.Five.browser import BrowserView
 
    def canonical_object(self):
        context = aq_inner(self.context)
        if self.is_default_page():
            return aq_parent(context)
        else:
    def view_template_id(self):
        context = aq_inner(self.context)
 
        if IBrowserDefault.providedBy(context):
            browserDefault = context
        if last_part == 'view':
            return True
        context = aq_inner(self.context)
        browserDefault = IBrowserDefault(context, None)
        if browserDefault is not None:
    def object_title(self):
        context = aq_inner(self.context)
        return utils.pretty_title_or_id(context, context)
 
    @memoize

src/e/u/Euphorie-6.3.1/src/euphorie/client/publish.py   Euphorie(Download)
import datetime
import logging
from Acquisition import aq_inner
from Acquisition import aq_parent
from AccessControl.SecurityManagement import getSecurityManager
    client = getPortal(survey).client
 
    source = aq_inner(survey)
    surveygroup = aq_parent(source)
    sector = aq_parent(surveygroup)
    def publish(self):
        survey = aq_inner(self.context)
        survey.published = datetime.datetime.now()
        wt = getToolByName(survey, "portal_workflow")
        state = wt.getInfoFor(survey, "review_state")
    def is_surveygroup_published(self):
        """Check if this surveygroup has been published before."""
        source = aq_inner(self.context)
        surveygroup = aq_parent(source)
        return bool(surveygroup.published)
 
    def is_this_survey_published(self):
        """Check if this survey is currently published."""
        source = aq_inner(self.context)

src/p/l/plone.app.portlets-3.0.1/plone/app/portlets/browser/formhelper.py   plone.app.portlets(Download)
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
 
from Acquisition import aq_parent, aq_inner, aq_base
from Acquisition.interfaces import IAcquirer
 
        # Acquisition wrap temporarily to satisfy things like vocabularies
        # depending on tools
        container = aq_inner(self.context)
 
        if IAcquirer.providedBy(obj):
    def nextURL(self):
        if self.referer:
            return self.referer
        addview = aq_parent(aq_inner(self.context))
        context = aq_parent(aq_inner(addview))
            return referer
        else:
            addview = aq_parent(aq_inner(self.context))
            context = aq_parent(aq_inner(addview))
            url = str(getMultiAdapter((context, self.request),

src/p/l/plone.app.portlets-HEAD/plone/app/portlets/browser/formhelper.py   plone.app.portlets(Download)
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
 
from Acquisition import aq_parent, aq_inner, aq_base
from Acquisition.interfaces import IAcquirer
 
        # Acquisition wrap temporarily to satisfy things like vocabularies
        # depending on tools
        container = aq_inner(self.context)
 
        if IAcquirer.providedBy(obj):
    def nextURL(self):
        if self.referer:
            return self.referer
        addview = aq_parent(aq_inner(self.context))
        context = aq_parent(aq_inner(addview))
            return referer
        else:
            addview = aq_parent(aq_inner(self.context))
            context = aq_parent(aq_inner(addview))
            url = str(getMultiAdapter((context, self.request),

src/e/r/erp5-HEAD/product/CMFActivity/ActivityTool.py   erp5(Download)
from Products.CMFCore.utils import UniqueObject, _getAuthenticatedUser
from Products.ERP5Type.Globals import InitializeClass, DTMLFile
from Acquisition import aq_base, aq_inner, aq_parent
from ActivityBuffer import ActivityBuffer
from ActivityRuntimeEnvironment import BaseMessage
        # SQL Connection migration is needed
        LOG('ActivityTool', WARNING, "Migrating MySQL Connection class")
        parent = aq_parent(aq_inner(sql_connection))
        parent._delObject(sql_connection.getId())
        new_sql_connection = ActivityConnection(connection_id,
      # Call distribute on each queue
      for activity in activity_dict.itervalues():
        activity.distribute(aq_inner(self), node_count)
 
    security.declarePublic('tic')
        self.initialize()
 
      inner_self = aq_inner(self)
 
      try:
        obj = self
      for activity in activity_dict.itervalues():
        if activity.hasActivity(aq_inner(self), obj, **kw):
          return True
      return False

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