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

All Samples(46)  |  Call(28)  |  Derive(0)  |  Import(18)

src/p/r/Products.kupu-1.5.2/Products/kupu/plone/librarytool.py   Products.kupu(Download)
import Acquisition
from Acquisition import aq_parent, aq_inner, aq_base
from Products.CMFCore.Expression import Expression, createExprContext
from Products.PageTemplates.Expressions import getEngine, SecureModuleImporter
from Products.kupu.plone.interfaces import IKupuLibraryTool
                else:
                    folder = aq_parent(aq_inner(folder))
        ec = createExprContext(folder, portal, object)
        return ec
 

src/p/r/Products.ResourceRegistries-3.0/Products/ResourceRegistries/tools/BaseRegistry.py   Products.ResourceRegistries(Download)
 
from Products.CMFCore.Expression import Expression
from Products.CMFCore.Expression import createExprContext
from Products.CMFCore.utils import UniqueObject, getToolByName
from Products.Five.browser.resource import Resource as z3_Resource
 
                __traceback_info__ = (folder, portal, context, expression)
                ec = createExprContext(folder, portal, context)
                # add 'context' as an alias for 'object'
                ec.setGlobal('context', context)

src/p/r/Products.CMFPlone-5.0a2/Products/CMFPlone/PloneControlPanel.py   Products.CMFPlone(Download)
from zope.i18nmessageid import Message
 
from Products.CMFCore.Expression import Expression, createExprContext
from Products.CMFCore.ActionInformation import ActionInformation
from Products.CMFCore.ActionProviderBase import ActionProviderBase
    def enumConfiglets(self, group=None):
        portal = getToolByName(self, 'portal_url').getPortalObject()
        context = createExprContext(self, portal, self)
        res = []
        for a in self.listActions():

src/p/r/Products.ResourceRegistries-HEAD/Products/ResourceRegistries/tools/BaseRegistry.py   Products.ResourceRegistries(Download)
 
from Products.CMFCore.Expression import Expression
from Products.CMFCore.Expression import createExprContext
from Products.CMFCore.utils import UniqueObject, getToolByName
from Products.Five.browser.resource import Resource as z3_Resource
 
                __traceback_info__ = (folder, portal, context, expression)
                ec = createExprContext(folder, portal, context)
                # add 'context' as an alias for 'object'
                ec.setGlobal('context', context)

src/p/l/plone.app.contentrules-3.0.7/plone/app/contentrules/conditions/talesexpression.py   plone.app.contentrules(Download)
from plone.app.contentrules.browser.formhelper import AddForm, EditForm
 
from Products.CMFCore.Expression import Expression, createExprContext
 
 
        portal = getToolByName(folder, 'portal_url').getPortalObject()
        expression = self.element.tales_expression
        ec = createExprContext(folder, portal, object)
        # Workaround CMFCore/PageTemplates issue with unicode missing context
        ec.contexts['context'] = ec.contexts['here']

src/c/o/collective.aaf-1.3/src/collective/aaf/portlets/shibbolethloginportlet.py   collective.aaf(Download)
from zope.formlib import form
from zope.formlib.textwidgets import TextWidget
from Products.CMFCore.Expression import createExprContext, Expression
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from Products.PythonScripts.standard import html_quote
    context for execution.
    """
    ec = createExprContext(folder, portal, object)
    ec.contexts['context'] = ec.contexts['here']
    for key, value in kwargs.iteritems():

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/PloneControlPanel.py   Products.CMFPlone(Download)
from zope.i18nmessageid import Message
 
from Products.CMFCore.Expression import Expression, createExprContext
from Products.CMFCore.ActionInformation import ActionInformation
from Products.CMFCore.ActionProviderBase import ActionProviderBase
    def enumConfiglets(self, group=None):
        portal = getToolByName(self, 'portal_url').getPortalObject()
        context = createExprContext(self, portal, self)
        res = []
        for a in self.listActions():

src/c/o/collective.contentrules.talesaction-1.0/collective/contentrules/talesaction/action.py   collective.contentrules.talesaction(Download)
from OFS.SimpleItem import SimpleItem
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.Expression import Expression, createExprContext
from Products.CMFPlone import utils
from Products.statusmessages.interfaces import IStatusMessage
        portal = getToolByName(folder, 'portal_url').getPortalObject()
        expression = self.element.tales_expression
        ec = createExprContext(folder, portal, object)
        Expression(expression)(ec)
 

src/p/r/Products.ATExtensions-1.1/Products/ATExtensions/field/record.py   Products.ATExtensions(Download)
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.Expression import Expression
from Products.CMFCore.Expression import createExprContext
from Products.Archetypes.debug import log
from Products.Archetypes.atapi import DisplayList
            if condition is not None:
                __traceback_info__ = (folder, portal, object, condition)
                ec = createExprContext(folder, portal, object)
                return Expression(condition)(ec)
            else:

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/Widget.py   Products.Archetypes(Download)
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.Expression import Expression
from Products.CMFCore.Expression import createExprContext
 
from Products.Archetypes.utils import className
                    folder = aq_parent(aq_inner(object))
                __traceback_info__ = (folder, portal, object, self.condition)
                ec = createExprContext(folder, portal, object)
                return Expression(self.condition)(ec)
            else:

  1 | 2 | 3  Next