Commit 50265e93 authored by Jérome Perrin's avatar Jérome Perrin

core: remove Amount.getQuantityUnitRangeItemList

this is not used and cause a SyntaxWarning
parent 32418024
...@@ -311,19 +311,6 @@ class Amount(Base, VariatedMixin): ...@@ -311,19 +311,6 @@ class Amount(Base, VariatedMixin):
(property_id, property_value, self.getRelativeUrl())) (property_id, property_value, self.getRelativeUrl()))
raise 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') security.declareProtected(Permissions.AccessContentsInformation, 'getResourceDefaultQuantityUnit')
def getResourceDefaultQuantityUnit(self): 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