Commit 2e4dc454 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

since portal_workflow.getWorkflowsFor() is protected, use Base.getWorkflowStateItemList() instead.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24863 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c0a227c1
...@@ -62,7 +62,7 @@ history_name_list = [\'building_history\', \' installation_history\', \'history\ ...@@ -62,7 +62,7 @@ history_name_list = [\'building_history\', \' installation_history\', \'history\
history = {}\n history = {}\n
\n \n
portal_workflow = context.getPortalObject().portal_workflow\n portal_workflow = context.getPortalObject().portal_workflow\n
workflow_id_list = [x.getId() for x in portal_workflow.getWorkflowsFor(context)]\n workflow_id_list = [workflow_id for workflow_id, workflow_state in context.getWorkflowStateItemList()]\n
\n \n
for history_name in history_name_list:\n for history_name in history_name_list:\n
\n \n
...@@ -148,7 +148,8 @@ return history\n ...@@ -148,7 +148,8 @@ return history\n
<string>append</string> <string>append</string>
<string>$append0</string> <string>$append0</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>x</string> <string>workflow_id</string>
<string>workflow_state</string>
<string>workflow_id_list</string> <string>workflow_id_list</string>
<string>history_name</string> <string>history_name</string>
<string>wf_id</string> <string>wf_id</string>
......
...@@ -62,7 +62,7 @@ result = []\n ...@@ -62,7 +62,7 @@ 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 = [x.getId() for x in portal_workflow.getWorkflowsFor(context)]\n workflow_id_list = [workflow_id for workflow_id, workflow_state 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
...@@ -194,7 +194,7 @@ return result\n ...@@ -194,7 +194,7 @@ return result\n
<string>append</string> <string>append</string>
<string>$append0</string> <string>$append0</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>x</string> <string>workflow_state</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,6 +213,7 @@ return result\n ...@@ -213,6 +213,7 @@ 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>
......
1035 1036
\ 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