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

All Samples(72)  |  Call(38)  |  Derive(0)  |  Import(34)

src/p/l/plone.app.upgrade-1.3.6/plone/app/upgrade/v30/alphas.py   plone.app.upgrade(Download)
from Products.CMFActionIcons.interfaces import IActionIconsTool
from Products.CMFCalendar.interfaces import ICalendarTool
from Products.CMFCore.ActionInformation import Action
from Products.CMFCore.ActionInformation import ActionCategory
from Products.CMFCore.interfaces import IActionsTool
                available_expr = action.condition.text
 
            new_action = Action(action.id,
                title=action.title,
                description=action.description,

src/p/l/plone.app.upgrade-HEAD/plone/app/upgrade/v30/alphas.py   plone.app.upgrade(Download)
from Products.CMFActionIcons.interfaces import IActionIconsTool
from Products.CMFCalendar.interfaces import ICalendarTool
from Products.CMFCore.ActionInformation import Action
from Products.CMFCore.ActionInformation import ActionCategory
from Products.CMFCore.interfaces import IActionsTool
                available_expr = action.condition.text
 
            new_action = Action(action.id,
                title=action.title,
                description=action.description,

src/c/o/collective.portaltabs-0.3.0/collective/portaltabs/browser/manage_portaltabs_view.py   collective.portaltabs(Download)
from Products.CMFCore.utils import getToolByName
from Products.CMFCore import permissions
from Products.CMFCore.ActionInformation import Action
from Products.CMFPlone.utils import getFSVersionTuple
 
        title = form.get('title')
        action_id = form.get('id') or self.plone_utils.normalizeString(title)
        action = Action(action_id,
                        title=title,
                        url_expr=_tallify(form.get('url')),
                                                   )
                else:
                    action = Action(action_id,
                                    title=props['title'],
                                    description=props['description'],

src/p/l/plone.app.controlpanel-2.4.3/plone/app/controlpanel/security.py   plone.app.controlpanel(Download)
 
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.ActionInformation import Action
from Products.CMFDefault.formlib.schema import SchemaAdapterBase
from Products.CMFPlone.utils import safe_hasattr
    def add_mystuff_action(self, object_category):
        new_action = Action(
            'mystuff',
            title=_(u'My Folder'),
            description='',

src/p/l/plone.app.controlpanel-HEAD/plone/app/controlpanel/security.py   plone.app.controlpanel(Download)
 
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.ActionInformation import Action
from Products.CMFDefault.formlib.schema import SchemaAdapterBase
from Products.CMFPlone.utils import safe_hasattr
    def add_mystuff_action(self, object_category):
        new_action = Action(
            'mystuff',
            title=_(u'My Folder'),
            description='',

src/e/n/enpraxis.educommons-4.1.2/enpraxis/educommons/upgrades/v3_0_2_to_3_1_0.py   enpraxis.educommons(Download)
from plone.portlets.interfaces import IPortletManager, IPortletAssignmentMapping
from Products.CMFDynamicViewFTI.fti import DynamicViewTypeInformation
from Products.CMFCore.ActionInformation import Action
 
 
def updateActions(portal):
    """ Add the Package Course folder_button action  """
    at = portal.portal_actions
 
    pkg_action  = Action('package_course',

src/c/o/collective.setuphelpers-0.6.3/collective/setuphelpers/various.py   collective.setuphelpers(Download)
import logging
 
from Products.CMFCore.ActionInformation import Action
from Products.CMFCore.utils import getToolByName
from Products.TinyMCE.interfaces.utility import ITinyMCE
        if category is not None:
            category._setObject(uid, Action(
                    uid,
                    title       = info.get('title'),
                    i18n_domain = info.get('i18n_domain'),

src/p/l/plone.app.upgrade-1.3.6/plone/app/upgrade/v40/tests.py   plone.app.upgrade(Download)
from zope.ramcache.interfaces.ram import IRAMCache
 
from Products.CMFCore.ActionInformation import Action
from Products.CMFCore.Expression import Expression
from Products.CMFCore.utils import getToolByName
            title='Test my second icon',
            )
        test_action = Action('test_id',
            title='Test me',
            description='',
            permissions=('View', ),
            visible = True)
        test2_action = Action('test2_id',
            title='Test me too',
            description='',

src/p/l/plone.app.upgrade-HEAD/plone/app/upgrade/v40/tests.py   plone.app.upgrade(Download)
from zope.ramcache.interfaces.ram import IRAMCache
 
from Products.CMFCore.ActionInformation import Action
from Products.CMFCore.Expression import Expression
from Products.CMFCore.utils import getToolByName
            title='Test my second icon',
            )
        test_action = Action('test_id',
            title='Test me',
            description='',
            permissions=('View', ),
            visible = True)
        test2_action = Action('test2_id',
            title='Test me too',
            description='',

src/q/u/quintagroup.plonetabs-1.0/quintagroup/plonetabs/browser/plonetabs.py   quintagroup.plonetabs(Download)
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.interfaces import IAction, IActionCategory
from Products.CMFCore.ActionInformation import Action, ActionCategory
from Products.CMFCore.Expression import Expression
from Products.CMFPlone import utils
    def addAction(self, cat_name, data):
        """Create and add new action to category with given name"""
        id = data.pop('id')
        category = self.getOrCreateCategory(cat_name)
        action = Action(id, **data)

  1 | 2 | 3  Next