Commit eaad40ed authored by Sebastien Robin's avatar Sebastien Robin

disable getIndustrialPrice


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3204 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 34ab0d87
...@@ -460,25 +460,25 @@ class Resource(XMLMatrix, CoreResource, Variated): ...@@ -460,25 +460,25 @@ class Resource(XMLMatrix, CoreResource, Variated):
# Industrial price API # Industrial price API
security.declareProtected(Permissions.AccessContentsInformation, 'getIndustrialPrice') # security.declareProtected(Permissions.AccessContentsInformation, 'getIndustrialPrice')
def getIndustrialPrice(self, context=None, REQUEST=None, **kw): # def getIndustrialPrice(self, context=None, REQUEST=None, **kw):
""" # """
Returns industrial price # Returns industrial price
""" # """
context = self.asContext(context=context, REQUEST=REQUEST, **kw) # context = self.asContext(context=context, REQUEST=REQUEST, **kw)
result = self._getIndustrialPrice(context) # result = self._getIndustrialPrice(context)
if result is None: # if result is None:
self._updateIndustrialPrice(context) # self._updateIndustrialPrice(context)
result = self._getIndustrialPrice(context) # result = self._getIndustrialPrice(context)
return result # return result
#
def _getIndustrialPrice(self, context): # def _getIndustrialPrice(self, context):
# Default value is None # # Default value is None
return None # return None
#
def _updateIndustrialPrice(self, context): # def _updateIndustrialPrice(self, context):
# Do nothing by default # # Do nothing by default
pass # pass
security.declareProtected( Permissions.ModifyPortalContent, 'validate' ) security.declareProtected( Permissions.ModifyPortalContent, 'validate' )
def validate(self): def validate(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