From 5764dcc8fb8f4e1c1aba16ab1273788974353a5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Wed, 6 Feb 2013 10:46:06 +0100 Subject: [PATCH] remove not used methods get[Default|Source|Destination]TotalPrice getDefaultTotalPrice getSourceTotalPrice getDestinationTotalPrice --- product/ERP5/Document/Delivery.py | 31 ----------------------------- product/ERP5/Document/SupplyLine.py | 22 -------------------- 2 files changed, 53 deletions(-) diff --git a/product/ERP5/Document/Delivery.py b/product/ERP5/Document/Delivery.py index 2bc2a7938a..7a71308367 100644 --- a/product/ERP5/Document/Delivery.py +++ b/product/ERP5/Document/Delivery.py @@ -87,37 +87,6 @@ class Delivery(XMLObject, ImmobilisationDelivery, SimulableMixin, """ 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, 'getTotalPrice') def getTotalPrice(self, fast=0, src__=0, base_contribution=None, rounding=False, **kw): diff --git a/product/ERP5/Document/SupplyLine.py b/product/ERP5/Document/SupplyLine.py index 414edc48cd..ed085377f3 100644 --- a/product/ERP5/Document/SupplyLine.py +++ b/product/ERP5/Document/SupplyLine.py @@ -92,15 +92,9 @@ class SupplyLine(Path, Amount, XMLMatrix): def _getPrice(self, context): return 0.0 - def _getDefaultPrice(self, context): - return 0.0 - def _getTotalPrice(self, context): return 0.0 - def _getDefaultTotalPrice(self, context): - return 0.0 - security.declareProtected(Permissions.AccessContentsInformation, 'isAccountable') def isAccountable(self): @@ -108,22 +102,6 @@ class SupplyLine(Path, Amount, XMLMatrix): """ 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 ############################################# -- 2.30.9