[Zope-CVS] CVS: Packages3/workflow - instance.py:1.2 service.py:1.2

Ulrich Eck ueck@net-labs.de
Tue, 4 Feb 2003 16:38:09 -0500


Update of /cvs-repository/Packages3/workflow
In directory cvs.zope.org:/tmp/cvs-serv28573

Modified Files:
	instance.py service.py 
Log Message:
very basic ProcessInstance implementation, minor fixes



=== Packages3/workflow/instance.py 1.1 => 1.2 ===
--- Packages3/workflow/instance.py:1.1	Sun Feb  2 14:21:53 2003
+++ Packages3/workflow/instance.py	Tue Feb  4 16:38:06 2003
@@ -22,21 +22,27 @@
 
 
 # XXX should an Instance be persistent by default ???
-class ProcessInstance(Persistent):
+class ProcessInstance:
 
     __doc__ = IProcessInstance.__doc__
 
     __implements__ =  IProcessInstance
 
+    def __init__(self, pd_name, initial_status):
+        self._pd_name = pd_name
+        self._status = initial_status
+  
+    processDefinitionName = property(lambda self: self._pd_name)
+
+    status = property(lambda self: self._status)
+
+    
     ############################################################
     # Implementation methods for interface
     # zope.app.interfaces.workflow.IProcessInstance
 
-    name = None
 
-    status = None
 
-    processDefinition = None
 
     #
     ############################################################


=== Packages3/workflow/service.py 1.1 => 1.2 ===
--- Packages3/workflow/service.py:1.1	Sun Feb  2 14:21:53 2003
+++ Packages3/workflow/service.py	Tue Feb  4 16:38:06 2003
@@ -21,7 +21,6 @@
 from persistence import Persistent
 
 from zope.proxy.context import ContextMethod
-from zope.proxy.context import ContextWrapper
 
 from zope.app.component.nextservice import queryNextService
 from zope.app.interfaces.services.configuration \