Commit 94a8f1e0 authored by Alexandre Boeglin's avatar Alexandre Boeglin

redefined accessors prototype now uses "default" as their first parameter, to

comply with recent changes in ERP5Type/Base.py:_setProperty


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10700 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8fd11541
...@@ -73,7 +73,7 @@ class Amount(Base, Variated): ...@@ -73,7 +73,7 @@ class Amount(Base, Variated):
# THIS MUST BE UPDATE WITH CATEGORY ACQUISITION # THIS MUST BE UPDATE WITH CATEGORY ACQUISITION
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getVariationCategoryList') 'getVariationCategoryList')
def getVariationCategoryList(self, base_category_list=(), def getVariationCategoryList(self, default=[], base_category_list=(),
omit_option_base_category=0): omit_option_base_category=0):
""" """
Returns the possible discrete variations Returns the possible discrete variations
...@@ -150,7 +150,8 @@ class Amount(Base, Variated): ...@@ -150,7 +150,8 @@ class Amount(Base, Variated):
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getVariationBaseCategoryList') 'getVariationBaseCategoryList')
def getVariationBaseCategoryList(self, omit_option_base_category=0): def getVariationBaseCategoryList(self, default=[],
omit_option_base_category=0):
""" """
Return the list of base_category from all variation related to Return the list of base_category from all variation related to
amount. amount.
...@@ -218,7 +219,8 @@ class Amount(Base, Variated): ...@@ -218,7 +219,8 @@ class Amount(Base, Variated):
security.declareProtected(Permissions.AccessContentsInformation, \ security.declareProtected(Permissions.AccessContentsInformation, \
'getVariationRangeCategoryList') 'getVariationRangeCategoryList')
def getVariationRangeCategoryList(self, base_category_list=(), base=1, **kw): def getVariationRangeCategoryList(self, default=[], base_category_list=(),
base=1, **kw):
""" """
Returns possible variation category values for the Returns possible variation category values for the
order line according to the default resource. order line according to the default resource.
...@@ -229,7 +231,7 @@ class Amount(Base, Variated): ...@@ -229,7 +231,7 @@ class Amount(Base, Variated):
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getVariationRangeBaseCategoryList') 'getVariationRangeBaseCategoryList')
def getVariationRangeBaseCategoryList(self, omit_option_base_category=0): def getVariationRangeBaseCategoryList(self, default=[], omit_option_base_category=0):
""" """
Returns possible variations base categories for this amount ie. Returns possible variations base categories for this amount ie.
the variation base category of the resource (not the the variation base category of the resource (not the
......
...@@ -200,7 +200,7 @@ class Resource(XMLMatrix, CoreResource, Variated): ...@@ -200,7 +200,7 @@ class Resource(XMLMatrix, CoreResource, Variated):
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getVariationCategoryList') 'getVariationCategoryList')
def getVariationCategoryList(self, base_category_list=(), def getVariationCategoryList(self, default=[], base_category_list=(),
omit_individual_variation=1, **kw): omit_individual_variation=1, **kw):
""" """
Returns variations of the resource. Returns variations of the resource.
......
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