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.CMFCore-2.2.8/Products/CMFCore/tests/test_PortalFolder.py   Products.CMFCore(Download)
from Products.CMFCore.TypesTool import FactoryTypeInformation as FTI
from Products.CMFCore.TypesTool import TypesTool
from Products.CMFCore.WorkflowTool import WorkflowTool
from types import TupleType
 
        ttool = self.site._setObject( 'portal_types', TypesTool() )
        ctool = self.site._setObject( 'portal_catalog', DummyCatalogTool() )
        wftool = self.site._setObject( 'portal_workflow', WorkflowTool() )
        test = self._makeOne('test')
        wftool.notifyCreated(test)

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/exportimport/tests/test_workflow.py   Products.CMFCore(Download)
    def setUp(self):
        from Products.CMFCore.WorkflowTool import WorkflowTool
 
        self._obj = WorkflowTool()
        self._BODY = _WORKFLOWTOOL_BODY

Previous  1 | 2