Commit 1b0eed91 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Fix a bug which happened when a zsql contains multiple <dtml-comment>.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1517 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c906b34c
......@@ -273,7 +273,7 @@ class_file:%s
self.manage_advanced(max_rows, max_cache, cache_time, class_name, class_file)
self.title = str(title)
self.connection_id = str(connection_id)
body = body[m.end():]
body = body[m.end(1):]
m = re.match('\s*<params>(.*)</params>\s*\n', body, re.I | re.S)
if m:
self.arguments_src = m.group(1)
......@@ -575,6 +575,7 @@ class ERP5DCWorkflowDefinition (DCWorkflowDefinition):
# Execute the "after" script.
if tdef is not None and tdef.after_script_name:
# Script can be either script or workflow method
LOG('_executeTransition', 0, 'new_sdef.transitions = %s' % (repr(new_sdef.transitions)))
if tdef.after_script_name in filter(lambda k: self.transitions[k].trigger_type == TRIGGER_WORKFLOW_METHOD,
new_sdef.transitions):
script = getattr(ob, tdef.after_script_name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment