Commit 49f360e1 authored by Romain Courteaud's avatar Romain Courteaud

Add method getVariationRangeBaseCategoryItemList.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4280 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 146213a2
......@@ -235,6 +235,22 @@ class Amount(Base, Variated):
result = self.portal_categories.getBaseCategoryList()
return result
security.declareProtected(Permissions.AccessContentsInformation,
'getVariationRangeBaseCategoryItemList')
def getVariationRangeBaseCategoryItemList(self, omit_option_base_category=0,
display_id="title",
display_none_category=0):
"""
Returns possible variations base categories for this amount ie.
the variation base category of the resource (not the
variation range).
"""
return self.portal_categories.getItemList(
self.getVariationRangeBaseCategoryList(
omit_option_base_category=omit_option_base_category),
display_id=display_id,
display_none_category=display_none_category)
#####################################################################
# Variation property API
#####################################################################
......
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