Logo Search packages:      
Sourcecode: zope-cmfplacefulworkflow version File versions  Download package

def CMFPlacefulWorkflow::tests::testCMFPlacefulWorkflow::TestPlacefulWorkflow::test_05_editWorkflowPolicy (   self  ) 

Edit workflow policy

Definition at line 192 of file testCMFPlacefulWorkflow.py.

00192                                          :
        """Edit workflow policy
        """
        pwt = self.portal_placeful_workflow
        pwt.manage_addWorkflowPolicy('foo_bar_policy',
                                     'default_workflow_policy (Simple Policy)')
        gsp = pwt.getWorkflowPolicyById('foo_bar_policy')
        gsp.setChainForPortalTypes(['Document','Folder'], ['plone_workflow','folder_workflow'])
        self.assertEqual(gsp.getChainFor('Document'), ('plone_workflow','folder_workflow',))
        self.assertEqual(gsp.getChainFor('Folder'), ('plone_workflow','folder_workflow',))

    def test_06_getWorkflowPolicyIds(self,):


Generated by  Doxygen 1.6.0   Back to index