[CMF-checkins] CVS: CMF/CMFDefault - Portal.py:1.38
Yvo Schubbe
y.2004_ at wcm-solutions.de
Thu Feb 26 06:26:55 EST 2004
Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv23353/CMFDefault
Modified Files:
Portal.py
Log Message:
- replaced default workflow
=== CMF/CMFDefault/Portal.py 1.37 => 1.38 ===
--- CMF/CMFDefault/Portal.py:1.37 Mon Dec 1 08:55:43 2003
+++ CMF/CMFDefault/Portal.py Thu Feb 26 06:26:55 2004
@@ -284,17 +284,19 @@
reg.getPredicate( 'file' ).edit( major="application", minor="" )
reg.assignTypeName( 'file', 'File' )
-
def setupWorkflow(self, p):
- tool = getToolByName(p, 'portal_workflow', None)
- if tool is None:
+ wftool = getToolByName(p, 'portal_workflow', None)
+ if wftool is None:
+ return
+ try:
+ from DCWorkflow.Default import createDefaultWorkflowClassic
+ except ImportError:
return
- from DefaultWorkflow import DefaultWorkflowDefinition
id = 'default_workflow'
- tool._setObject(id, DefaultWorkflowDefinition(id))
+ wftool._setObject( id, createDefaultWorkflowClassic(id) )
# These objects don't participate in workflow by default.
- tool.setChainForPortalTypes( ( 'Folder', 'Topic' ), () )
+ wftool.setChainForPortalTypes( ('Folder', 'Topic'), () )
def setup(self, p, create_userfolder):
self.setupTools(p)
More information about the CMF-checkins
mailing list