Commit 51708c96 authored by Sebastien Robin's avatar Sebastien Robin

give parameters to the Renderer


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3200 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 863c31ea
......@@ -173,9 +173,7 @@ class Amount(Base, Variated):
security.declareProtected(Permissions.AccessContentsInformation, \
'getVariationRangeCategoryItemList')
def getVariationRangeCategoryItemList(self, base_category_list=(),
display_id='getTitle', base=1,
current_category=None):
def getVariationRangeCategoryItemList(self, **kw):
"""
Returns possible variation category values for the
order line according to the default resource.
......@@ -187,11 +185,8 @@ class Amount(Base, Variated):
resource = self.getResourceValue()
if resource != None:
result = resource.getVariationCategoryItemList(
omit_individual_variation=0)
omit_individual_variation=0,**kw)
else:
# return self.portal_categories.getCategoryChildItemList(
# base=base,
# display_id=display_id)
result = []
return result
......
......@@ -149,7 +149,7 @@ class Transformation(XMLObject, Domain, Variated):
security.declareProtected(Permissions.AccessContentsInformation,'getVariationRangeCategoryItemList')
def getVariationRangeCategoryItemList(self, base_category_list=(),
display_base_category=1):
display_base_category=1,**kw):
"""
Returns possible variation category values for the
transformation according to the default resource.
......@@ -168,7 +168,7 @@ class Transformation(XMLObject, Domain, Variated):
result = resource.getVariationCategoryItemList(
base_category_list=base_category_list,
omit_individual_variation=0,
display_base_category=display_base_category)
display_base_category=display_base_category,**kw)
else:
# No resource is define on transformation. We want to display content of base categories
result = self.portal_categories.getCategoryChildTitleItemList(base_category_list, base=1, display_none_category=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