Commit 8a445ce0 authored by Nicolas Dumazet's avatar Nicolas Dumazet

Fix testTransformation: when getting cell ranges on a transformation,

one should use VariationRangeCategory* instead of VariationCategory*:
if the resource does not use all items in a category, only Range methods
return the correct result.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33611 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent baae1a07
......@@ -82,10 +82,10 @@ for c in ([line_base_category, column_base_category] + tab_base_category_list):\
# XXX matrixbox is right_display (not as listfield) \n
# => invert display and value in item\n
cell_range.append(map(lambda x: (x[1],x[0]), \n
transformation.getVariationCategoryItemList\n
transformation.getVariationRangeCategoryItemList\n
(base_category_list=(c,))))\n
else:\n
cell_range.append(transformation.getVariationCategoryList(\n
cell_range.append(transformation.getVariationRangeCategoryList(\n
base_category_list=(c,)))\n
\n
# Remove empty range\n
......
463
\ No newline at end of file
464
\ 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