Commit afec3569 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

here, context is not a Predicate object but a ParallelListField. and there is...

here, context is not a Predicate object but a ParallelListField. and there is no need to call a method upon the Predicate to get usable base categories.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26714 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 257a0e62
......@@ -63,9 +63,11 @@ sub_field_list = []\n
default_sub_field_property_dict.update({\'field_type\':\'MultiListField\'})\n
\n
z = 0\n
category_list = context.getMembershipCriterionBaseCategoryList()\n
category_list += [i for i in context.getMultimembershipCriterionBaseCategoryList() \\\n
if i not in category_list]\n
category_list = []\n
for x in item_list:\n
base_category = x[1].split(\'/\', 1)[0]\n
if base_category and base_category not in category_list:\n
category_list.append(base_category)\n
\n
for category in category_list:\n
new_dict = default_sub_field_property_dict.copy()\n
......@@ -127,20 +129,20 @@ return sub_field_list\n
<string>sub_field_list</string>
<string>_getattr_</string>
<string>z</string>
<string>context</string>
<string>category_list</string>
<string>_inplacevar_</string>
<string>append</string>
<string>$append0</string>
<string>_getiter_</string>
<string>i</string>
<string>x</string>
<string>_getitem_</string>
<string>base_category</string>
<string>category</string>
<string>new_dict</string>
<string>x</string>
<string>append</string>
<string>$append0</string>
<string>_write_</string>
<string>_getitem_</string>
<string>str</string>
<string>len</string>
<string>_inplacevar_</string>
<string>context</string>
<string>request</string>
</tuple>
</value>
......
1189
\ No newline at end of file
1192
\ 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