[Erp5-report] r45626 leonardo - in /erp5/trunk/bt5/erp5_simulation_legacy: DocumentTemplate...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Apr 22 10:38:19 CEST 2011
Author: leonardo
Date: Fri Apr 22 10:38:19 2011
New Revision: 45626
URL: http://svn.erp5.org?rev=45626&view=rev
Log:
Match r45577 in SimulationLegacyPatches to keep Legacy Simulation Movement working
Modified:
erp5/trunk/bt5/erp5_simulation_legacy/DocumentTemplateItem/SimulationLegacyPatches.py
erp5/trunk/bt5/erp5_simulation_legacy/bt/revision
Modified: erp5/trunk/bt5/erp5_simulation_legacy/DocumentTemplateItem/SimulationLegacyPatches.py
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_simulation_legacy/DocumentTemplateItem/SimulationLegacyPatches.py?rev=45626&r1=45625&r2=45626&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_simulation_legacy/DocumentTemplateItem/SimulationLegacyPatches.py [utf8] (original)
+++ erp5/trunk/bt5/erp5_simulation_legacy/DocumentTemplateItem/SimulationLegacyPatches.py [utf8] Fri Apr 22 10:38:19 2011
@@ -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()
Modified: erp5/trunk/bt5/erp5_simulation_legacy/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_simulation_legacy/bt/revision?rev=45626&r1=45625&r2=45626&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_simulation_legacy/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_simulation_legacy/bt/revision [utf8] Fri Apr 22 10:38:19 2011
@@ -1 +1 @@
-14
\ No newline at end of file
+15
\ No newline at end of file
More information about the Erp5-report
mailing list