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

All Samples(26)  |  Call(11)  |  Derive(2)  |  Import(13)

src/p/r/Products.CMFPlone-5.0a2/Products/CMFPlone/WorkflowTool.py   Products.CMFPlone(Download)
from zope.component import getMultiAdapter
 
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.WorkflowTool import WorkflowTool as BaseTool
from Products.CMFPlone.interfaces import IWorkflowChain
class WorkflowTool(PloneBaseTool, BaseTool):
 
    meta_type = 'Plone Workflow Tool'
    security = ClassSecurityInfo()
    plone_tool = 1

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/WorkflowTool.py   Products.CMFPlone(Download)
from zope.component import getMultiAdapter
 
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.WorkflowTool import WorkflowTool as BaseTool
from Products.CMFPlone.interfaces import IWorkflowChain
class WorkflowTool(PloneBaseTool, BaseTool):
 
    meta_type = 'Plone Workflow Tool'
    security = ClassSecurityInfo()
    plone_tool = 1

src/e/r/erp5-HEAD/product/ERP5Type/patches/WorkflowTool.py   erp5(Download)
 
from AccessControl import Unauthorized
from Products.CMFCore.WorkflowTool import WorkflowTool
from Products.CMFCore.WorkflowCore import ObjectMoved, ObjectDeleted
from Products.CMFCore.WorkflowCore import WorkflowException

src/e/r/erp5-HEAD/product/ERP5/Interactor/PortalTypeClassInteractor.py   erp5(Download)
  def install(self):
    # changing chains or workflows on Workflow Tool
    from Products.CMFCore.WorkflowTool import WorkflowTool
    self.on(WorkflowTool.manage_changeWorkflows).doAfter(self.resetDynamic)
    self.on(WorkflowTool.setDefaultChain).doAfter(self.resetDynamic)

src/p/r/Products.DCWorkflow-2.3.0-beta/Products/DCWorkflow/tests/test_guard.py   Products.DCWorkflow(Download)
from Products.CMFCore.tests.base.dummy import DummySite
from Products.CMFCore.tests.base.dummy import DummyTool
from Products.CMFCore.WorkflowTool import WorkflowTool
from Products.DCWorkflow.DCWorkflow import DCWorkflowDefinition
from Products.DCWorkflow.Guard import Guard
    def setUp(self):
        self.site = DummySite('site')
 
        # Construct a workflow
        self.wtool = WorkflowTool()

src/p/r/Products.DCWorkflow-2.3.0-beta/Products/DCWorkflow/tests/test_DCWorkflow.py   Products.DCWorkflow(Download)
from Products.CMFCore.tests.base.security import OmnipotentUser
from Products.CMFCore.tests.base.testcase import SecurityTest
from Products.CMFCore.WorkflowTool import WorkflowTool
from Products.DCWorkflow.interfaces import IAfterTransitionEvent
from Products.DCWorkflow.interfaces import IBeforeTransitionEvent
    def setUp(self):
        SecurityTest.setUp(self)
        self.app._setObject('site', DummySite('site'))
        self.site = self.app._getOb('site')
        self.wtool = self.site._setObject('portal_workflow', WorkflowTool())

src/f/t/ftw.journal-1.2.7/ftw/journal/tests/test_unit_adapters.py   ftw.journal(Download)
from persistent.list import PersistentList
from plone.mocktestcase import MockTestCase
from Products.CMFCore.WorkflowTool import WorkflowTool
from zope.annotation.interfaces import IAnnotations
from zope.interface import Interface
 
        # Workflowtool
        wftool = WorkflowTool()
        mock_wftool = self.mocker.proxy(wftool, spec=None)
        self.expect(mock_wftool.getWorkflowsFor(ANY)).result([mock_wf])

src/c/o/collective.subtractiveworkflow-2.0b1/collective/subtractiveworkflow/tests/test_permissions.py   collective.subtractiveworkflow(Download)
from Products.CMFCore.tests.base.dummy import DummySite
from Products.CMFCore.tests.base.dummy import DummyTool
from Products.CMFCore.WorkflowTool import WorkflowTool
 
from Products.DCWorkflow.DCWorkflow import DCWorkflowDefinition
    def setUp(self):
        self.site = DummySite('site')
        self.site._setObject('portal_types', DummyTool())
        self.site._setObject('portal_workflow', WorkflowTool())
        self._constructDummyWorkflow()
    def setUp(self):
        self.site = DummySite('site')
        self.site._setObject('portal_types', DummyTool())
        self.site._setObject('portal_workflow', WorkflowTool())
        self._constructDummyWorkflow()
    def setUp(self):
        self.site = DummySite('site')
        self.site._setObject('portal_types', DummyTool())
        self.site._setObject('portal_workflow', WorkflowTool())
        self._constructDummyWorkflows()
    def setUp(self):
        self.site = DummySite('site')
        self.site._setObject('portal_types', DummyTool())
        self.site._setObject('portal_workflow', WorkflowTool())
        self._constructDummyWorkflows()

src/p/r/Products.CMFDefault-2.3.0-beta2/Products/CMFDefault/tests/test_DefaultWorkflow.py   Products.CMFDefault(Download)
from Products.CMFCore.tests.base.dummy import DummyTool
from Products.CMFCore.tests.base.dummy import DummyUserFolder
from Products.CMFCore.WorkflowTool import WorkflowTool
 
 
        self.site._setObject('acl_users', DummyUserFolder())
 
        self.wtool = WorkflowTool()
        self.wtool._setObject('wf', DefaultWorkflowDefinition('wf'))
        self.wtool.setDefaultChain('wf')

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/tests/test_WorkflowTool.py   Products.CMFCore(Download)
    def _makeOne( self, workflow_ids=() ):
        from Products.CMFCore.WorkflowTool import WorkflowTool
 
        tool = WorkflowTool()
 
    def test_interfaces(self):
        from Products.CMFCore.interfaces import IActionProvider
        from Products.CMFCore.interfaces import IConfigurableWorkflowTool
        from Products.CMFCore.interfaces import IWorkflowTool
        from Products.CMFCore.WorkflowTool import WorkflowTool

  1 | 2  Next