[Zope3-checkins] CVS: Zope3/src/zope/app/workflow/interfaces -
__init__.py:1.6
Stephan Richter
srichter at cosmos.phy.tufts.edu
Fri Apr 16 07:51:43 EDT 2004
Update of /cvs-repository/Zope3/src/zope/app/workflow/interfaces
In directory cvs.zope.org:/tmp/cvs-serv16292/src/zope/app/workflow/interfaces
Modified Files:
__init__.py
Log Message:
Remove Export/Import utility interfaces.
Fix up Export/Import Handlers/Adapters to not require a PD as argument for
export/import. It is the context of the adapter now.
=== Zope3/src/zope/app/workflow/interfaces/__init__.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/workflow/interfaces/__init__.py:1.5 Thu Apr 15 18:11:10 2004
+++ Zope3/src/zope/app/workflow/interfaces/__init__.py Fri Apr 16 07:51:43 2004
@@ -81,35 +81,14 @@
"""Return a sequence of workitem."""
-class IProcessDefinitionImportExport(Interface):
- """ProcessDefinition Import/Export."""
-
- def importProcessDefinition(context, data):
- """Import a Process Definition"""
-
- def exportProcessDefinition(context, process_definition):
- """Export a Process Definition"""
-
-
-class IGlobalProcessDefinitionImportExport(IProcessDefinitionImportExport):
- """Global ImportExport with additional method to register import/export
- handlers."""
-
- def addImportHandler(interface, factory):
- """Add a factory for an import handler for a certain interface."""
-
- def addExportHandler(interface, factory):
- """Add a factory for an export handler for a certain interface."""
-
-
class IProcessDefinitionImportHandler(Interface):
"""Handler for Import of ProcessDefinitions."""
- def canImport(context, data):
+ def canImport(data):
"""Check if handler can import a processdefinition
based on the data given."""
- def doImport(context, data):
+ def doImport(data):
"""Create a ProcessDefinition from the data given.
Returns a ProcessDefinition Instance."""
@@ -117,7 +96,7 @@
class IProcessDefinitionExportHandler(Interface):
"""Handler for Export of ProcessDefinitions."""
- def doExport(context, process_definition):
+ def doExport():
"""Export a ProcessDefinition into a specific format.
Returns the serialized value of the given ProcessDefintion."""
More information about the Zope3-Checkins
mailing list