[Zope3-checkins] CVS: Zope3/src/zope/app/workflow/stateful - instance.py:1.11

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Aug 21 17:10:31 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/workflow/stateful
In directory cvs.zope.org:/tmp/cvs-serv10737/src/zope/app/workflow/stateful

Modified Files:
	instance.py 
Log Message:
Fixed Workflow code to comply with API changes.

Also fixed the situation in which no relevant data interface was specified.


=== Zope3/src/zope/app/workflow/stateful/instance.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/workflow/stateful/instance.py:1.10	Fri Aug 15 20:44:34 2003
+++ Zope3/src/zope/app/workflow/stateful/instance.py	Thu Aug 21 16:10:30 2003
@@ -162,6 +162,8 @@
     implements(IStatefulProcessInstance)
 
     def getData(self):
+        if self._data is None:
+            return None
         # Always give out the data attribute as proxied object.
         data = Proxy(self._data, self._data.getChecker())
         return ContextWrapper(data, self, name="data")




More information about the Zope3-Checkins mailing list