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): ...@@ -81,7 +81,7 @@ class Resource(XMLMatrix, CoreResource, Variated):
def getVariationRangeCategoryItemList(self, base_category_list=(), base=1, def getVariationRangeCategoryItemList(self, base_category_list=(), base=1,
root=1, display_id='title', root=1, display_id='title',
display_base_category=1, display_base_category=1,
current_category=None): current_category=None, **kw):
""" """
Returns possible variations Returns possible variations
...@@ -146,7 +146,7 @@ class Resource(XMLMatrix, CoreResource, Variated): ...@@ -146,7 +146,7 @@ class Resource(XMLMatrix, CoreResource, Variated):
if len(other_base_category_list) != 0: if len(other_base_category_list) != 0:
result += Variated.getVariationRangeCategoryItemList( result += Variated.getVariationRangeCategoryItemList(
self, base_category_list=other_base_category_list, 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
return result return result
......
...@@ -281,7 +281,7 @@ class Variated(Base): ...@@ -281,7 +281,7 @@ class Variated(Base):
def getVariationRangeCategoryItemList(self, base_category_list=(), base=1, def getVariationRangeCategoryItemList(self, base_category_list=(), base=1,
root=1, display_id='title', root=1, display_id='title',
display_base_category=1, display_base_category=1,
current_category=None): current_category=None, **kw):
""" """
Returns possible variations Returns possible variations
=> [(display, value)] => [(display, value)]
...@@ -297,7 +297,7 @@ class Variated(Base): ...@@ -297,7 +297,7 @@ class Variated(Base):
getCategoryChildLogicalPathItemList( getCategoryChildLogicalPathItemList(
base=base, base=base,
display_base_category=display_base_category, display_base_category=display_base_category,
display_none_category=0) display_none_category=0, **kw)
# Return result # Return result
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