[Erp5-report] r35948 kazuhiko - in /erp5/trunk/products: ERP5/Document/ ERP5Type/
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jun 3 14:06:08 CEST 2010
Author: kazuhiko
Date: Thu Jun 3 14:05:58 2010
New Revision: 35948
URL: http://svn.erp5.org?rev=35948&view=rev
Log:
get RuleTool and WorkflowTool from a portal to reduce _aq_dynamic calls.
Modified:
erp5/trunk/products/ERP5/Document/SimulationMovement.py
erp5/trunk/products/ERP5Type/Base.py
Modified: erp5/trunk/products/ERP5/Document/SimulationMovement.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/SimulationMovement.py?rev=35948&r1=35947&r2=35948&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/SimulationMovement.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/SimulationMovement.py [utf8] Thu Jun 3 14:05:58 2010
@@ -229,7 +229,7 @@
a delivery,
finally, apply new rules if no rule with the same type is already applied.
"""
- portal_rules = getToolByName(self, 'portal_rules')
+ portal_rules = getToolByName(self.getPortalObject(), 'portal_rules')
tv = getTransactionalVariable(self)
cache = tv.setdefault(TREE_DELIVERED_CACHE_KEY, {})
Modified: erp5/trunk/products/ERP5Type/Base.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Base.py?rev=35948&r1=35947&r2=35948&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Base.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Base.py [utf8] Thu Jun 3 14:05:58 2010
@@ -168,7 +168,7 @@
# New implementation does not use any longer wrapWorkflowMethod
# but directly calls the workflow methods
- wf = getToolByName(instance, 'portal_workflow', None)
+ wf = getToolByName(instance.getPortalObject(), 'portal_workflow', None)
if wf is None:
# XXX instance is unwrapped(no acquisition)
More information about the Erp5-report
mailing list