Commit 646dac81 authored by Sebastien Robin's avatar Sebastien Robin

eable the getIndustrialPrice method


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5801 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7462eec0
......@@ -469,25 +469,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
# Predicate handling
security.declareProtected(Permissions.AccessContentsInformation,
......
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