summaryrefslogtreecommitdiff
path: root/bin/workflow/instance.py
diff options
context:
space:
mode:
authorP. Christeas <p_christ@hol.gr>2009-05-05 00:18:03 +0300
committerP. Christeas <p_christ@hol.gr>2009-05-05 00:18:03 +0300
commitb7fe61abe9d0369de3c4a064bd89d0266a0d1d41 (patch)
tree88fca4b80ae99aa8ee7a577f731a06f804ef8d84 /bin/workflow/instance.py
parentc25b122b3c2803d75ac95a947f3419cc8fc87968 (diff)
Workflows: tolerate non-ending, missing instances.
bzr revid: p_christ@hol.gr-20090504211803-pcqu4w9x50v693p8
Diffstat (limited to 'bin/workflow/instance.py')
-rw-r--r--bin/workflow/instance.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/workflow/instance.py b/bin/workflow/instance.py
index 99e041ab860..8f1c8455598 100644
--- a/bin/workflow/instance.py
+++ b/bin/workflow/instance.py
@@ -43,6 +43,7 @@ def delete(cr, ident):
def validate(cr, inst_id, ident, signal, force_running=False):
cr.execute("select * from wkf_workitem where inst_id=%s", (inst_id,))
+ stack = None
for witem in cr.dictfetchall():
stack = []
workitem.process(cr, witem, ident, signal, force_running, stack=stack)