From eaad40ed1fc3d887ffea2b2e7c41a8ebc798a478 Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Tue, 7 Jun 2005 13:57:22 +0000 Subject: [PATCH] disable getIndustrialPrice git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3204 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/Resource.py | 38 +++++++++++++++---------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/product/ERP5/Document/Resource.py b/product/ERP5/Document/Resource.py index a59cd6bf43..783b362c14 100755 --- a/product/ERP5/Document/Resource.py +++ b/product/ERP5/Document/Resource.py @@ -460,25 +460,25 @@ class Resource(XMLMatrix, CoreResource, Variated): # Industrial price API - security.declareProtected(Permissions.AccessContentsInformation, 'getIndustrialPrice') - def getIndustrialPrice(self, context=None, REQUEST=None, **kw): - """ - Returns industrial price - """ - context = self.asContext(context=context, REQUEST=REQUEST, **kw) - result = self._getIndustrialPrice(context) - if result is None: - self._updateIndustrialPrice(context) - result = self._getIndustrialPrice(context) - return result - - def _getIndustrialPrice(self, context): - # Default value is None - return None - - def _updateIndustrialPrice(self, context): - # Do nothing by default - pass +# security.declareProtected(Permissions.AccessContentsInformation, 'getIndustrialPrice') +# def getIndustrialPrice(self, context=None, REQUEST=None, **kw): +# """ +# Returns industrial price +# """ +# context = self.asContext(context=context, REQUEST=REQUEST, **kw) +# result = self._getIndustrialPrice(context) +# if result is None: +# self._updateIndustrialPrice(context) +# result = self._getIndustrialPrice(context) +# return result +# +# def _getIndustrialPrice(self, context): +# # Default value is None +# return None +# +# def _updateIndustrialPrice(self, context): +# # Do nothing by default +# pass security.declareProtected( Permissions.ModifyPortalContent, 'validate' ) def validate(self): -- 2.30.9