[CMF-checkins] CVS: Products/CMFCore - WorkflowTool.py:1.52

Yvo Schubbe y.2005- at wcm-solutions.de
Wed Apr 13 03:24:27 EDT 2005


Update of /cvs-repository/Products/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv3653/CMFCore

Modified Files:
	WorkflowTool.py 
Log Message:
removed disabled auto-migration cruft (meanwhile CMFDefault uses DCWorkflow)


=== Products/CMFCore/WorkflowTool.py 1.51 => 1.52 ===
--- Products/CMFCore/WorkflowTool.py:1.51	Thu Apr  7 12:38:46 2005
+++ Products/CMFCore/WorkflowTool.py	Wed Apr 13 03:24:26 2005
@@ -36,8 +36,6 @@
 from WorkflowCore import WorkflowException
 
 
-AUTO_MIGRATE_WORKFLOW_TOOLS = 0  # Set to 1 to auto-migrate
-
 _marker = []  # Create a new marker object.
 
 class WorkflowInformation:
@@ -84,24 +82,6 @@
     security.declareProtected( ManagePortal, 'manage_overview' )
     manage_overview = DTMLFile( 'explainWorkflowTool', _dtmldir )
 
-    if AUTO_MIGRATE_WORKFLOW_TOOLS:
-        def __setstate__(self, state):
-            # Adds default_workflow to persistent WorkflowTool instances.
-            # This is temporary!
-            WorkflowTool.inheritedAttribute('__setstate__')(self, state)
-            if not self.__dict__.has_key('default_workflow'):
-                try:
-                    from Products.CMFDefault import DefaultWorkflow
-                except ImportError:
-                    pass
-                else:
-                    self.default_workflow = (
-                        DefaultWorkflow.DefaultWorkflowDefinition(
-                        'default_workflow'))
-                    self._objects = self._objects + (
-                        {'id': 'default_workflow',
-                         'meta_type': self.default_workflow.meta_type},)
-
     _manage_addWorkflowForm = DTMLFile('addWorkflow', _dtmldir)
 
     security.declareProtected( ManagePortal, 'manage_addWorkflowForm')
@@ -568,7 +548,7 @@
 
         return tuple(wf_ids)
 
-    security.declareProtected( ManagePortal, 'getWorkflowsFor')
+    security.declareProtected(ManagePortal, 'getWorkflowsFor')
     def getWorkflowsFor(self, ob):
 
         """ Find the workflows for the type of the given object.



More information about the CMF-checkins mailing list