[Zope3-checkins] CVS: Packages3/workflow/browser - configure.zcml:1.10 instance.py:1.2
Ulrich Eck
ueck@net-labs.de
Wed, 26 Mar 2003 13:28:12 -0500
Update of /cvs-repository/Packages3/workflow/browser
In directory cvs.zope.org:/tmp/cvs-serv19791/browser
Modified Files:
configure.zcml instance.py
Log Message:
fixed some errors for Automatic Transitions and ommited Relevant Data Schema
=== Packages3/workflow/browser/configure.zcml 1.9 => 1.10 ===
--- Packages3/workflow/browser/configure.zcml:1.9 Wed Mar 26 12:43:37 2003
+++ Packages3/workflow/browser/configure.zcml Wed Mar 26 13:27:42 2003
@@ -106,6 +106,8 @@
<!-- ProcessInstanceContainerAdaptable
XXX Commented Out .. is just a demo
+-->
+
<browser:pages
for="zope.app.interfaces.workflow.IProcessInstanceContainerAdaptable"
permission="zope.workflow.UseProcessInstances"
@@ -123,7 +125,6 @@
title="ProcessInstances"
action="processinstances.html"
/>
--->
<include package=".stateful" />
=== Packages3/workflow/browser/instance.py 1.1 => 1.2 ===
--- Packages3/workflow/browser/instance.py:1.1 Fri Feb 7 16:50:51 2003
+++ Packages3/workflow/browser/instance.py Wed Mar 26 13:27:42 2003
@@ -88,7 +88,11 @@
if IStatefulProcessInstance.isImplementedBy(pi):
info['outgoing_transitions'] = pi.getOutgoingTransitions()
- info['data'] = self._getProcessInstanceData(pi.data)
+ if pi.data is not None:
+ info['data'] = self._getProcessInstanceData(pi.data)
+ else:
+ info['data'] = None
+
return info
def _fireTransition(self, pi_name, id):