Commit 5764dcc8 authored by Jérome Perrin's avatar Jérome Perrin

remove not used methods get[Default|Source|Destination]TotalPrice

getDefaultTotalPrice getSourceTotalPrice getDestinationTotalPrice
parent 42bfbda6
...@@ -87,37 +87,6 @@ class Delivery(XMLObject, ImmobilisationDelivery, SimulableMixin, ...@@ -87,37 +87,6 @@ class Delivery(XMLObject, ImmobilisationDelivery, SimulableMixin,
""" """
return 1 return 1
# Pricing methods
def _getTotalPrice(self, context):
return 2.0
def _getDefaultTotalPrice(self, context):
return 3.0
def _getSourceTotalPrice(self, context):
return 4.0
def _getDestinationTotalPrice(self, context):
return 5.0
security.declareProtected(Permissions.AccessContentsInformation, 'getDefaultTotalPrice')
def getDefaultTotalPrice(self, context=None, REQUEST=None, **kw):
"""
"""
return self._getDefaultTotalPrice(self.asContext(context=context, REQUEST=REQUEST, **kw))
security.declareProtected(Permissions.AccessContentsInformation, 'getSourceTotalPrice')
def getSourceTotalPrice(self, context=None, REQUEST=None, **kw):
"""
"""
return self._getSourceTotalPrice(self.asContext(context=context, REQUEST=REQUEST, **kw))
security.declareProtected(Permissions.AccessContentsInformation, 'getDestinationTotalPrice')
def getDestinationTotalPrice(self, context=None, REQUEST=None, **kw):
"""
"""
return self._getDestinationTotalPrice(self.asContext(context=context, REQUEST=REQUEST, **kw))
security.declareProtected( Permissions.AccessContentsInformation, security.declareProtected( Permissions.AccessContentsInformation,
'getTotalPrice') 'getTotalPrice')
def getTotalPrice(self, fast=0, src__=0, base_contribution=None, rounding=False, **kw): def getTotalPrice(self, fast=0, src__=0, base_contribution=None, rounding=False, **kw):
......
...@@ -92,15 +92,9 @@ class SupplyLine(Path, Amount, XMLMatrix): ...@@ -92,15 +92,9 @@ class SupplyLine(Path, Amount, XMLMatrix):
def _getPrice(self, context): def _getPrice(self, context):
return 0.0 return 0.0
def _getDefaultPrice(self, context):
return 0.0
def _getTotalPrice(self, context): def _getTotalPrice(self, context):
return 0.0 return 0.0
def _getDefaultTotalPrice(self, context):
return 0.0
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'isAccountable') 'isAccountable')
def isAccountable(self): def isAccountable(self):
...@@ -108,22 +102,6 @@ class SupplyLine(Path, Amount, XMLMatrix): ...@@ -108,22 +102,6 @@ class SupplyLine(Path, Amount, XMLMatrix):
""" """
return 0 return 0
security.declareProtected(Permissions.AccessContentsInformation,
'getDefaultPrice')
def getDefaultPrice(self, context=None, REQUEST=None, **kw):
"""
"""
return self._getDefaultPrice(self.asContext(context=context,
REQUEST=REQUEST, **kw))
security.declareProtected(Permissions.AccessContentsInformation,
'getDefaultTotalPrice')
def getDefaultTotalPrice(self, context=None, REQUEST=None, **kw):
"""
"""
return self._getDefaultTotalPrice(self.asContext(context=context,
REQUEST=REQUEST, **kw))
############################################# #############################################
# Predicate method # Predicate method
############################################# #############################################
......
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