[CMF-checkins] CVS: CMF/CMFCore/interfaces - portal_workflow.py:1.10.12.2

Yvo Schubbe schubbe@web.de
Thu, 19 Dec 2002 17:09:51 -0500


Update of /cvs-repository/CMF/CMFCore/interfaces
In directory cvs.zope.org:/tmp/cvs-serv8472/CMFCore/interfaces

Modified Files:
      Tag: yuppie-collector096-branch
	portal_workflow.py 
Log Message:
tool interface cleanup:
- added interface tests and made them pass

=== CMF/CMFCore/interfaces/portal_workflow.py 1.10.12.1 => 1.10.12.2 ===
--- CMF/CMFCore/interfaces/portal_workflow.py:1.10.12.1	Wed Dec 18 16:42:56 2002
+++ CMF/CMFCore/interfaces/portal_workflow.py	Thu Dec 19 17:09:20 2002
@@ -10,16 +10,22 @@
 # FOR A PARTICULAR PURPOSE
 # 
 ##############################################################################
-""" Workflow tool interface description.
+""" Workflow tool interface.
 
 $Id$
 """
 
-from Interface import Attribute, Base
+from Interface import Attribute
+try:
+    from Interface import Interface
+except ImportError:
+    # for Zope versions before 2.6.0
+    from Interface import Base as Interface
 
 _marker = []
 
-class portal_workflow(Base):
+
+class portal_workflow(Interface):
     '''This tool accesses and changes the workflow state of content.
     '''
     id = Attribute('id', 'Must be set to "portal_workflow"')
@@ -106,7 +112,7 @@
         '''
 
 
-class WorkflowDefinition(Base):
+class WorkflowDefinition(Interface):
     '''The interface expected of workflow definitions objects.
     Accesses and changes the workflow state of objects.
     '''