Commit c50cc83e authored by Yusuke Muraoka's avatar Yusuke Muraoka

simplify.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33708 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 067032d4
......@@ -63,11 +63,9 @@ if resource is not None:\n
for base_category in base_category_list:\n
if matrixbox == 1:\n
# XXX matrixbox is right_display (not as listfield) => invert display and value in item\n
cell_range.append( map(lambda x: (x[1],x[0]), context.getVariationCategoryItemList(base_category_list = (base_category,) ) ) )\n
cell_range.extend( map(lambda x: (x[1],x[0]), context.getVariationCategoryItemList(base_category_list = (base_category,) ) ) )\n
else:\n
cell_range.append( context.getVariationCategoryList(base_category_list = (base_category,) ) )\n
\n
cell_range = filter(lambda x: x != [], cell_range )\n
cell_range.extend( context.getVariationCategoryList(base_category_list = (base_category,) ) )\n
\n
return cell_range\n
......@@ -120,7 +118,6 @@ return cell_range\n
<string>_getiter_</string>
<string>base_category</string>
<string>map</string>
<string>filter</string>
</tuple>
</value>
</item>
......
864
\ No newline at end of file
865
\ 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