Commit 1dba94ee authored by Sebastien Robin's avatar Sebastien Robin

getVariationRangeCategoryItemList should supports many parameters


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2797 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4931263d
...@@ -148,8 +148,12 @@ class TransformedResource(XMLObject, XMLMatrix, Amount): ...@@ -148,8 +148,12 @@ class TransformedResource(XMLObject, XMLMatrix, Amount):
security.declareProtected(Permissions.AccessContentsInformation,'getVariationRangeCategoryItemList') security.declareProtected(Permissions.AccessContentsInformation,'getVariationRangeCategoryItemList')
def getVariationRangeCategoryItemList(self, base_category_list=(), def getVariationRangeCategoryItemList(self, base_category_list = (),
display_base_category=1): omit_individual_variation=1, base=1,
current_category=None,
display_base_category=1,
display_id='title', **kw):
""" """
Returns possible variation category values for the Returns possible variation category values for the
transformation according to the default resource. transformation according to the default resource.
...@@ -166,9 +170,13 @@ class TransformedResource(XMLObject, XMLMatrix, Amount): ...@@ -166,9 +170,13 @@ class TransformedResource(XMLObject, XMLMatrix, Amount):
base_category_list = resource.getVariationBaseCategoryList() base_category_list = resource.getVariationBaseCategoryList()
result = resource.getVariationCategoryItemList( result = resource.getVariationCategoryItemList(
display_base_category=display_base_category, base_category_list=base_category_list,
base_category_list=base_category_list, omit_individual_variation=0,
omit_individual_variation=0) base=base,
current_category=current_category,
display_base_category=display_base_category,
display_id=display_id,
**kw)
return result return result
......
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