Commit e62ae43b authored by Sebastien Robin's avatar Sebastien Robin

getVariationCategoryList should support many parameters


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2868 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 15ee748d
......@@ -216,7 +216,7 @@ class Resource(XMLMatrix, CoreResource, Variated):
security.declareProtected(Permissions.AccessContentsInformation,
'getVariationCategoryItemList')
def getVariationCategoryList(self, base_category_list=(),
omit_individual_variation=1):
omit_individual_variation=1,**kw):
"""
Returns variations of the resource.
If omit_individual_variation==1, does not return individual
......@@ -247,7 +247,7 @@ class Resource(XMLMatrix, CoreResource, Variated):
"""
vcil = self.getVariationCategoryItemList(
base_category_list=base_category_list,
omit_individual_variation=omit_individual_variation)
omit_individual_variation=omit_individual_variation,**kw)
return map(lambda x: x[1], vcil)
# Unit conversion
......
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