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(): ...@@ -143,15 +143,18 @@ def patch():
SimulationMovement.isBuildable = isBuildable SimulationMovement.isBuildable = isBuildable
def _getApplicableRuleList(self): def _asSuccessorContext(self):
""" Search rules that match this movement, but don't try to look up """ Legacy SimulationMovement doesn't try to look up successor trade phases
successor trade_phases
""" """
portal_rules = self.getPortalObject().portal_rules return self
return portal_rules.searchRuleList(self,
sort_on='version',
sort_order='descending')
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() patch()
14 15
\ No newline at end of file \ 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