Commit d9ca5987 authored by Jérome Perrin's avatar Jérome Perrin

core: remove Amount.getQuantityUnitRangeItemList

this is not used and cause a SyntaxWarning
parent 4886c722
......@@ -311,19 +311,6 @@ class Amount(Base, VariatedMixin):
(property_id, property_value, self.getRelativeUrl()))
raise
security.declareProtected(Permissions.AccessContentsInformation,
'getQuantityUnitRangeItemList')
def getQuantityUnitRangeItemList(self, base_category_list=()):
resource = self.getDefaultResourceValue()
if resource is not None:
result = resource.getQuantityUnitList()
else:
result = ()
if result is ():
return self.portal_categories.quantity_unit.getFormItemList()
else:
return result
security.declareProtected(Permissions.AccessContentsInformation, 'getResourceDefaultQuantityUnit')
def getResourceDefaultQuantityUnit(self):
"""
......
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