Commit f4991bfb authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

2008-12-15 Kazuhiko

* fix a bug in r24863 that uses a conflict variable name with a passed argument.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24892 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a222be72
...@@ -62,19 +62,19 @@ result = []\n ...@@ -62,19 +62,19 @@ result = []\n
i = 1\n i = 1\n
portal_object = context.getPortalObject()\n portal_object = context.getPortalObject()\n
portal_workflow = portal_object.portal_workflow\n portal_workflow = portal_object.portal_workflow\n
workflow_id_list = [workflow_id for workflow_id, workflow_state in context.getWorkflowStateItemList()]\n workflow_id_list = [x for x, y in context.getWorkflowStateItemList()]\n
if not workflow_id in workflow_id_list:\n if not workflow_id in workflow_id_list:\n
return []\n return []\n
# Get history\n # Get history\n
# XXX Compatibility\n # XXX Compatibility\n
for history_name in [\'history\', \'building_history\', \'installation_history\']:\n for history_name in [\'history\', \'building_history\', \'installation_history\']:\n
workflow_item_list = context.portal_workflow.getInfoFor(ob=context, \n workflow_item_list = portal_workflow.getInfoFor(ob=context, \n
name=\'history\', wf_id=workflow_id)\n name=\'history\', wf_id=workflow_id)\n
if workflow_item_list != []:\n if workflow_item_list != []:\n
break\n break\n
\n \n
wf_states = context.portal_workflow[workflow_id].states\n wf_states = portal_workflow[workflow_id].states\n
wf_transitions = context.portal_workflow[workflow_id].transitions\n wf_transitions = portal_workflow[workflow_id].transitions\n
\n \n
next_serial = None\n next_serial = None\n
previous_obj = None\n previous_obj = None\n
...@@ -194,7 +194,8 @@ return result\n ...@@ -194,7 +194,8 @@ return result\n
<string>append</string> <string>append</string>
<string>$append0</string> <string>$append0</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>workflow_state</string> <string>x</string>
<string>y</string>
<string>workflow_id_list</string> <string>workflow_id_list</string>
<string>history_name</string> <string>history_name</string>
<string>workflow_item_list</string> <string>workflow_item_list</string>
...@@ -213,7 +214,6 @@ return result\n ...@@ -213,7 +214,6 @@ return result\n
<string>compatibility_name</string> <string>compatibility_name</string>
<string>len</string> <string>len</string>
<string>same_type</string> <string>same_type</string>
<string>x</string>
<string>getattr</string> <string>getattr</string>
</tuple> </tuple>
</value> </value>
......
1037 1038
\ No newline at end of file \ No newline at end of file
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