Commit 8cea0609 authored by Alexandre Boeglin's avatar Alexandre Boeglin

when passing omit_individual_variation to getVariationRangeCategoryItemList,

make sure this parameter is not passed twice to
resource.getVariationCategoryItemList


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20376 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9540b63c
...@@ -126,6 +126,7 @@ class Transformation(XMLObject, Predicate, Variated): ...@@ -126,6 +126,7 @@ class Transformation(XMLObject, Predicate, Variated):
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getVariationRangeCategoryItemList') 'getVariationRangeCategoryItemList')
def getVariationRangeCategoryItemList(self, base_category_list=(), def getVariationRangeCategoryItemList(self, base_category_list=(),
omit_individual_variation=0,
display_base_category=1, **kw): display_base_category=1, **kw):
""" """
Returns possible variation category values for the Returns possible variation category values for the
...@@ -144,7 +145,7 @@ class Transformation(XMLObject, Predicate, Variated): ...@@ -144,7 +145,7 @@ class Transformation(XMLObject, Predicate, Variated):
if resource != None: if resource != None:
result = resource.getVariationCategoryItemList( result = resource.getVariationCategoryItemList(
base_category_list=base_category_list, base_category_list=base_category_list,
omit_individual_variation=0, omit_individual_variation=omit_individual_variation,
display_base_category=display_base_category,**kw) display_base_category=display_base_category,**kw)
else: else:
# No resource is define on transformation. # No resource is define on transformation.
......
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