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

All Samples(36)  |  Call(17)  |  Derive(0)  |  Import(19)

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/ActionProviderBase.py   Products.CMFCore(Download)
from zope.interface import implements
 
from Products.CMFCore.ActionInformation import ActionInfo
from Products.CMFCore.ActionInformation import ActionInformation
from Products.CMFCore.ActionInformation import getOAI
        ec = self._getExprContext(object)
        actions = self.listActions(object=object)
        actions = [ ActionInfo(action, ec) for action in actions ]
 
        if action_chain:

src/p/r/Products.CMFPlone-5.0a2/Products/CMFPlone/TypesTool.py   Products.CMFPlone(Download)
from AccessControl import ClassSecurityInfo
from App.class_init import InitializeClass
 
from Products.CMFCore.ActionInformation import ActionInfo
from Products.CMFCore.interfaces import IAction
 
        ec = self._getExprContext(object)
        actions = [ActionInfo(action, ec) for action in actions]
 
        if action_chain:

src/p/r/Products.CMFPlone-5.0a2/Products/CMFPlone/ActionsTool.py   Products.CMFPlone(Download)
from AccessControl import ClassSecurityInfo
from App.class_init import InitializeClass
from Products.CMFCore.ActionInformation import ActionInfo
from Products.CMFCore.ActionsTool import ActionsTool as BaseTool
from Products.CMFCore.interfaces import IActionProvider
 
        ec = self._getExprContext(object)
        actions = [ActionInfo(action, ec) for action in actions]
 
        if action_chain:

src/p/r/Products.takeaction-1.0/Products/takeaction/takeaction.py   Products.takeaction(Download)
from OFS.SimpleItem import SimpleItem
 
from Products.CMFCore.ActionInformation import ActionInfo
from Products.CMFCore.ActionInformation import ActionInformation
from Products.CMFCore.ActionProviderBase import ActionProviderBase
        ec = self._getExprContext(object)
        actions = self.listActions(object=object, categories=categories)
        actions = [ ActionInfo(action, ec) for action in actions ]
 
        if action_chain:

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/TypesTool.py   Products.CMFPlone(Download)
from AccessControl import ClassSecurityInfo
from App.class_init import InitializeClass
 
from Products.CMFCore.ActionInformation import ActionInfo
from Products.CMFCore.interfaces import IAction
 
        ec = self._getExprContext(object)
        actions = [ActionInfo(action, ec) for action in actions]
 
        if action_chain:

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/ActionsTool.py   Products.CMFPlone(Download)
from AccessControl import ClassSecurityInfo
from App.class_init import InitializeClass
from Products.CMFCore.ActionInformation import ActionInfo
from Products.CMFCore.ActionsTool import ActionsTool as BaseTool
from Products.CMFCore.interfaces import IActionProvider
 
        ec = self._getExprContext(object)
        actions = [ActionInfo(action, ec) for action in actions]
 
        if action_chain:

src/a/n/anz.dashboard-0.7.0/anz/dashboard/browser/widgetview.py   anz.dashboard(Download)
# cmf
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.ActionInformation import ActionInfo
 
# plone
		if category is not None:
			for action in category.listActions():
				ai = ActionInfo( action, self.ec )
 
				if check_visibility and not ai['visible']:

src/n/u/NuPlone-1.4.0/plonetheme/nuplone/skin/sitemenu.py   NuPlone(Download)
from OFS.interfaces import ICopyContainer
 
from Products.CMFCore.ActionInformation import ActionInfo
from Products.CMFCore.interfaces import ISiteRoot
from Products.CMFCore.utils import getToolByName
                                 ignore_categories=None)
        ec = pa._getExprContext(context)
        actions = [ActionInfo(action, ec) for action in actions]
 
        menu = {"title": _("menu_organise", default=u"Organise")}

src/n/u/NuPlone-1.4.0/plonetheme/nuplone/utils.py   NuPlone(Download)
from Products.CMFPlone.interfaces import IPloneSiteRoot
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.ActionInformation import ActionInfo
from z3c.form.interfaces import IAddForm
from z3c.form.interfaces import IEditForm
    tt=getToolByName(context, "portal_types")
    ec=tt._getExprContext(context)
    actions=[ActionInfo(fti, ec) for fti in ftis]
    actions=[FactoryInfo(action.get("id"),
                         action.get("title") or action.get("id"), 

src/v/n/vnccollab.theme-1.7.11-/vnccollab/theme/browser/viewlets.py   vnccollab.theme(Download)
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.interfaces import IActionCategory, IAction
from Products.CMFCore.ActionInformation import ActionInfo
from Products.CMFPlone.utils import safe_unicode, normalizeString, parent
from Products.CMFPlone.i18nl10n import monthname_msgid, weekdayname_msgid
                # create actioninfo object to compile and render TAL expressions
                # and check if action is available in current circumstances
                info = ActionInfo(action, ec)
                if not (info['visible'] and info['allowed'] and
                        info['available']):

  1 | 2  Next