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/r/Products.CMFCore-2.2.8/Products/CMFCore/exportimport/tests/test_actions.py   Products.CMFCore(Download)
    def setUp(self):
        from Products.CMFCore.ActionInformation import Action
 
        self._obj = Action('foo_action')
        self._XML = _ACTION_XML
    def _populate(self, obj):
        from Products.CMFCore.ActionInformation import Action
 
        obj._setObject('foo_action', Action('foo_action'))
 
    def _populate(self, obj):
        from Products.CMFCore.ActionInformation import Action
        from Products.CMFCore.ActionInformation import ActionCategory
 
        obj._setObject('foo_category', ActionCategory('foo_category'))

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/tests/test_ActionsTool.py   Products.CMFCore(Download)
from zope.testing.cleanup import cleanUp
 
from Products.CMFCore.ActionInformation import Action
from Products.CMFCore.ActionInformation import ActionCategory
from Products.CMFCore.ActionInformation import ActionInformation
    def test_getActionObject_skips_newstyle_actions(self):
        tool = self._makeOne()
        tool._setObject('object', ActionCategory('object'))
        tool.object._setObject('newstyle_id', Action('newstyle_id'))
        rval = tool.getActionObject('object/newstyle_id')

src/t/o/tomcom.bootstrap.navbar-4.3.0.4/tomcom/bootstrap/navbar/tests/test_tcbnavbar.py   tomcom.bootstrap.navbar(Download)
from Products.PloneTestCase import PloneTestCase
from zope.configuration import xmlconfig
from Products.CMFCore.ActionInformation import Action
from Products.CMFCore.ActionInformation import ActionCategory
 
        kwargs['visible']=True
 
        root_level._setObject('action_root', Action('action_root',**kwargs))
        action_root=getattr(root_level,'action_root')
        action_root.manage_addProperty(id='class_',value='my-class-root',type='string')
 
 
        action_category_level1._setObject('action_level1', Action('action_level1',**kwargs))
        action_level1=getattr(action_category_level1,'action_level1')
 

src/p/r/Products.CMFPlone-5.0a2/Products/CMFPlone/tests/testActionsTool.py   Products.CMFPlone(Download)
from OFS.SimpleItem import Item
from Products.CMFCore.ActionInformation import ActionInfo
from Products.CMFCore.ActionInformation import Action
 
 
    def testListActionsSkipsItemsWithOldInterface(self):
        # Ticket #10791
        me = Action("not_action_category")
        self.actions['not_a_category'] = me
        try:

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testActionsTool.py   Products.CMFPlone(Download)
from OFS.SimpleItem import Item
from Products.CMFCore.ActionInformation import ActionInfo
from Products.CMFCore.ActionInformation import Action
 
 
    def testListActionsSkipsItemsWithOldInterface(self):
        # Ticket #10791
        me = Action("not_action_category")
        self.actions['not_a_category'] = me
        try:

src/q/u/quintagroup.plonetabs-1.0/quintagroup/plonetabs/tests/test_controlpanel.py   quintagroup.plonetabs(Download)
 
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.ActionInformation import Action
 
from quintagroup.plonetabs import messageFactory as _
    def test_copyAction(self):
        data = PORTAL_ACTIONS[0][1]['children'][0][1]
        action = Action('act1', **data)
        info = self.panel.copyAction(action)
        self.assertEquals(len(info.keys()), 7)

src/q/u/quintagroup.plonetabs-1.0/quintagroup/plonetabs/tests/base.py   quintagroup.plonetabs(Download)
from Products.Five import zcml
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.ActionInformation import Action, ActionCategory
from Products.PloneTestCase import PloneTestCase as ptc
from Products.PloneTestCase.layer import onsetup
    def setupActions(self, parent, kids=PORTAL_ACTIONS):
        ids = parent.objectIds()
        for id, child in kids:
            if child['type'] == 'action' and id not in ids:
                parent._setObject(id, Action(id, **child))

src/a/n/anz.dashboard-0.7.0/anz/dashboard/tests/test_widgetview.py   anz.dashboard(Download)
 
# cmf
from Products.CMFCore.ActionInformation import ActionCategory, Action
 
if __name__ == '__main__':
    def _makeAction( self, *args, **kw ):
        return Action( *args, **kw )
 
def test_suite():
    from unittest import TestSuite, makeSuite

src/a/n/anz.dashboard-0.7.0/anz/dashboard/tests/test_dashboardview.py   anz.dashboard(Download)
 
# cmf
from Products.CMFCore.ActionInformation import ActionCategory, Action
 
if __name__ == '__main__':
    def _makeAction( self, *args, **kw ):
        return Action( *args, **kw )
 
class TestDashboardCreateView( AnzDashBoardTestCase ):
 
    def _makeAction( self, *args, **kw ):
        return Action( *args, **kw )
 
def test_suite():
    from unittest import TestSuite, makeSuite

Previous  1 | 2 | 3