Commit a8535f83 authored by Romain Courteaud's avatar Romain Courteaud

Fix wrong selection name.

Thanks to Mikolaj Antoszkiewicz

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18807 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 84d8879e
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -75,13 +72,13 @@ domain_list = []\n ...@@ -75,13 +72,13 @@ domain_list = []\n
if depth == 0:\n if depth == 0:\n
category_list = [ ]\n category_list = [ ]\n
for i in context.portal_selections.getSelectionValueList(context=context,\n for i in context.portal_selections.getSelectionValueList(context=context,\n
selection_name= \'task_selection\'):\n selection_name= \'task_module_selection\'):\n
category_list.extend([j for j in i.getSourceProjectValueList(portal_type="Project") if j not in category_list])\n category_list.extend([j for j in i.getSourceProjectValueList(portal_type="Project") if j not in category_list])\n
\n \n
else:\n else:\n
category_list = [ ]\n category_list = [ ]\n
for i in context.portal_selections.getSelectionValueList(context=context,\n for i in context.portal_selections.getSelectionValueList(context=context,\n
selection_name=\'task_selection\'):\n selection_name=\'task_module_selection\'):\n
category_list.extend([j for j in i.getSourceProjectValueList(portal_type=["Project Line", "Project Milestones"]) \\\n category_list.extend([j for j in i.getSourceProjectValueList(portal_type=["Project Line", "Project Milestones"]) \\\n
if (j not in category_list) and ( j.getParentRelativeUrl() in parent.getMembershipCriterionCategoryList()) ])\n if (j not in category_list) and ( j.getParentRelativeUrl() in parent.getMembershipCriterionCategoryList()) ])\n
\n \n
......
388 389
\ 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