Commit 3c9cf748 authored by Sebastien Robin's avatar Sebastien Robin

do not store the result


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5802 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 646dac81
...@@ -476,19 +476,12 @@ class Resource(XMLMatrix, CoreResource, Variated): ...@@ -476,19 +476,12 @@ class Resource(XMLMatrix, CoreResource, Variated):
""" """
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:
self._updateIndustrialPrice(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):
# Do nothing by default
pass
# Predicate handling # Predicate handling
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'asPredicate') 'asPredicate')
......
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