Commit 4554db70 authored by Jérome Perrin's avatar Jérome Perrin

a name error can occur here

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34127 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c3270f38
......@@ -57,10 +57,10 @@
\n
membership_criterion_category_list = budget.getMembershipCriterionCategoryList()\n
\n
# Remove all previous memberships from the same base\n
cleaned_membership_criterion_category_list = []\n
for base_category in budget.getMembershipCriterionBaseCategoryList():\n
if base_category in budget.getVariationBaseCategoryList():\n
# Remove all previous memberships from the same base\n
cleaned_membership_criterion_category_list = []\n
for membership_criterion_category in membership_criterion_category_list:\n
if not membership_criterion_category.startswith("%s/" % base_category):\n
cleaned_membership_criterion_category_list.append(membership_criterion_category)\n
......@@ -110,9 +110,9 @@ budget.setMembershipCriterionCategoryList(cleaned_membership_criterion_category_
<string>budget</string>
<string>_getattr_</string>
<string>membership_criterion_category_list</string>
<string>cleaned_membership_criterion_category_list</string>
<string>_getiter_</string>
<string>base_category</string>
<string>cleaned_membership_criterion_category_list</string>
<string>membership_criterion_category</string>
</tuple>
</value>
......
274
\ No newline at end of file
275
\ 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