Commit a20144a9 authored by Romain Courteaud's avatar Romain Courteaud

Modified getVariationRangeCategoryItemList to follow changed made in Resource.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2772 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7969c85c
......@@ -164,10 +164,23 @@ class TransformedResource(XMLObject, XMLMatrix, Amount):
if base_category_list is ():
base_category_list = resource.getVariationBaseCategoryList()
result = resource.getVariationRangeCategoryItemList(base_category_list=base_category_list )
result = resource.getVariationCategoryItemList(
base_category_list=base_category_list,
omit_individual_variation=0)
return result
security.declareProtected(Permissions.AccessContentsInformation,'getVariationRangeCategoryItemList')
def getVariationRangeCategoryList(self, base_category_list=()):
"""
Returns possible variation category values for the
transformation according to the default resource.
"""
return map(lambda x: x[1],
self.getVariationRangeCategoryItemList(
base_category_list=base_category_list))
return result
security.declareProtected(Permissions.AccessContentsInformation, 'getAggregatedAmountList')
def getAggregatedAmountList(self, context=None, REQUEST=None, **kw):
"""
......
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