[Zope3-checkins] CVS: Packages3/workflow - globalimportexport.py:1.5 notes.txt:1.3
Ulrich Eck
ueck@net-labs.de
Mon, 7 Apr 2003 13:34:20 -0400
Update of /cvs-repository/Packages3/workflow
In directory cvs.zope.org:/tmp/cvs-serv17691
Modified Files:
globalimportexport.py notes.txt
Log Message:
adding tests for workflow-directives, globalimportexport, xmlimportexport
updates for xmlexporttemplate to handle scripts and permissions correctly
=== Packages3/workflow/globalimportexport.py 1.4 => 1.5 ===
--- Packages3/workflow/globalimportexport.py:1.4 Thu Mar 27 09:00:50 2003
+++ Packages3/workflow/globalimportexport.py Mon Apr 7 13:33:49 2003
@@ -39,11 +39,11 @@
def importProcessDefinition(self, context, data):
"""Import a Process Definition
"""
- factory = self._importers.get(IProcessDefinition)
- if factory is not None:
- imp = factory()
- if imp.canImport(data):
- return imp.doImport(context, data)
+ for iface, factory in self._importers.getRegisteredMatching():
+ if iface.extends(IProcessDefinition):
+ imp = factory()
+ if imp.canImport(data):
+ return imp.doImport(context, data)
raise ValueError, 'No Importer can handle that information'
def exportProcessDefinition(self, context, process_definition):
=== Packages3/workflow/notes.txt 1.2 => 1.3 ===
--- Packages3/workflow/notes.txt:1.2 Wed Mar 26 12:43:36 2003
+++ Packages3/workflow/notes.txt Mon Apr 7 13:33:49 2003
@@ -22,4 +22,10 @@
(e.g. set/get Data, fire transitions, ...)
+TTW:
+ - modify StatefulState Adding-View to skip empty addform
+
+
+Unit Tests:
+ - stateful/xmlimportexport.py unittests needed