[CMF-checkins] SVN: CMF/trunk/CMFCore/exportimport/workflow.py - overriding _extractObjects is no longer necessary

Yvo Schubbe y.2005- at wcm-solutions.de
Thu Nov 24 06:20:29 EST 2005


Log message for revision 40354:
  - overriding _extractObjects is no longer necessary

Changed:
  U   CMF/trunk/CMFCore/exportimport/workflow.py

-=-
Modified: CMF/trunk/CMFCore/exportimport/workflow.py
===================================================================
--- CMF/trunk/CMFCore/exportimport/workflow.py	2005-11-24 11:17:46 UTC (rev 40353)
+++ CMF/trunk/CMFCore/exportimport/workflow.py	2005-11-24 11:20:28 UTC (rev 40354)
@@ -70,17 +70,6 @@
 
         self._logger.info('Workflow tool imported.')
 
-    def _extractObjects(self):
-        fragment = self._doc.createDocumentFragment()
-        objects = self.context.objectValues()
-        objects.sort(lambda x,y: cmp(x.getId(), y.getId()))
-        for obj in objects:
-            node = self._doc.createElement('object')
-            node.setAttribute('name', obj.getId())
-            node.setAttribute('meta_type', obj.meta_type)
-            fragment.appendChild(node)
-        return fragment
-
     def _initBBBObjects(self, node, mode):
         for child in node.childNodes:
             if child.nodeName != 'workflow':
@@ -147,7 +136,7 @@
 
 
 def importWorkflowTool(context):
-    """ Import worflow tool and contained workflow definitions from XML files.
+    """Import workflow tool and contained workflow definitions from XML files.
     """
     site = context.getSite()
     logger = context.getLogger('workflow')
@@ -167,7 +156,7 @@
     importObjects(tool, 'workflows', context)
 
 def exportWorkflowTool(context):
-    """ Export worflow tool and contained workflow definitions as XML files.
+    """Export workflow tool and contained workflow definitions as XML files.
     """
     site = context.getSite()
     logger = context.getLogger('workflow')



More information about the CMF-checkins mailing list