Commit 6aefb581 authored by Jérome Perrin's avatar Jérome Perrin

repair Predicate_getMembershipCriterionCategoryList for destination_region and...

repair Predicate_getMembershipCriterionCategoryList for destination_region and add support for source_region as well.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13723 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4d4716b7
......@@ -78,11 +78,11 @@ for item in multimembership_base_list :\n
\n
category_list = []\n
\n
\n
for item in mixed_list:\n
if item==\'destination_region\':\n
item = \'region\' # This must be made more generic\n
category_list += [\'destination_region/\' + x for x in context.portal_categories[item].getCategoryChildCompactLogicalPathItemList(base=1)]\n
if item in (\'destination_region\', \'source_region\'):\n
category = \'region\' # This must be made more generic\n
category_list += [(x[0], \'%s/%s\' % (item, x[1])) for x in \n
context.portal_categories[category].getCategoryChildCompactLogicalPathItemList(base=1)]\n
else:\n
category_list += context.portal_categories[item].getCategoryChildCompactLogicalPathItemList(base=1)\n
\n
......@@ -137,6 +137,7 @@ return category_list\n
<string>_getiter_</string>
<string>item</string>
<string>category_list</string>
<string>category</string>
<string>append</string>
<string>$append0</string>
<string>_getitem_</string>
......
284
\ No newline at end of file
285
\ 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