Commit 1c727c76 authored by Romain Courteaud's avatar Romain Courteaud

Can pass new parameters to getVariationRangeCategoryItemList for rendering.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5755 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fc28332f
......@@ -81,7 +81,7 @@ class Resource(XMLMatrix, CoreResource, Variated):
def getVariationRangeCategoryItemList(self, base_category_list=(), base=1,
root=1, display_id='title',
display_base_category=1,
current_category=None):
current_category=None, **kw):
"""
Returns possible variations
......@@ -146,7 +146,7 @@ class Resource(XMLMatrix, CoreResource, Variated):
if len(other_base_category_list) != 0:
result += Variated.getVariationRangeCategoryItemList(
self, base_category_list=other_base_category_list,
base=base, display_base_category=display_base_category)
base=base, display_base_category=display_base_category, **kw)
# Return result
return result
......@@ -632,4 +632,4 @@ class Resource(XMLMatrix, CoreResource, Variated):
i = quantity.find('.')
if i < 0:
return 0
return len(quantity[i+1:].rstrip('0'))
\ No newline at end of file
return len(quantity[i+1:].rstrip('0'))
......@@ -281,7 +281,7 @@ class Variated(Base):
def getVariationRangeCategoryItemList(self, base_category_list=(), base=1,
root=1, display_id='title',
display_base_category=1,
current_category=None):
current_category=None, **kw):
"""
Returns possible variations
=> [(display, value)]
......@@ -297,7 +297,7 @@ class Variated(Base):
getCategoryChildLogicalPathItemList(
base=base,
display_base_category=display_base_category,
display_none_category=0)
display_none_category=0, **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