Match r45577 in SimulationLegacyPatches to keep Legacy Simulation Movement working

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45626 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6b8126ed
......@@ -143,15 +143,18 @@ def patch():
SimulationMovement.isBuildable = isBuildable
def _getApplicableRuleList(self):
""" Search rules that match this movement, but don't try to look up
successor trade_phases
def _asSuccessorContext(self):
""" Legacy SimulationMovement doesn't try to look up successor trade phases
"""
portal_rules = self.getPortalObject().portal_rules
return portal_rules.searchRuleList(self,
sort_on='version',
sort_order='descending')
return self
SimulationMovement._getApplicableRuleList = _getApplicableRuleList
SimulationMovement._asSuccessorContext = _asSuccessorContext
def _checkSuccessorContext(self):
""" Legacy SimulationMovement doesn't try to look up successor trade phases
"""
pass
SimulationMovement._checkSuccessorContext = _checkSuccessorContext
patch()
14
\ No newline at end of file
15
\ No newline at end of file
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