Commit 437e5a7b authored by Romain Courteaud's avatar Romain Courteaud

Add parameter display_base_category to getVariationRangeCategoryItemList.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2776 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7a1a0f91
......@@ -148,7 +148,8 @@ class TransformedResource(XMLObject, XMLMatrix, Amount):
security.declareProtected(Permissions.AccessContentsInformation,'getVariationRangeCategoryItemList')
def getVariationRangeCategoryItemList(self, base_category_list = ()):
def getVariationRangeCategoryItemList(self, base_category_list=(),
display_base_category=1):
"""
Returns possible variation category values for the
transformation according to the default resource.
......@@ -165,6 +166,7 @@ class TransformedResource(XMLObject, XMLMatrix, Amount):
base_category_list = resource.getVariationBaseCategoryList()
result = resource.getVariationCategoryItemList(
display_base_category=display_base_category,
base_category_list=base_category_list,
omit_individual_variation=0)
......
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