[Erp5-report] r44181 jerome - /erp5/trunk/products/ERP5/mixin/rule.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Mar 11 14:51:48 CET 2011
Author: jerome
Date: Fri Mar 11 14:51:48 2011
New Revision: 44181
URL: http://svn.erp5.org?rev=44181&view=rev
Log:
don't call _getInputMovementList twice
Modified:
erp5/trunk/products/ERP5/mixin/rule.py
Modified: erp5/trunk/products/ERP5/mixin/rule.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/mixin/rule.py?rev=44181&r1=44180&r2=44181&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/mixin/rule.py [utf8] (original)
+++ erp5/trunk/products/ERP5/mixin/rule.py [utf8] Fri Mar 11 14:51:48 2011
@@ -100,10 +100,10 @@ class MovementGeneratorMixin:
# Results will be appended to result
result = []
# Build a list of movement and business path
- LOG('_getInputMovementList', 0, repr(self._getInputMovementList(movement_list=movement_list,
- rounding=rounding)))
- for input_movement in self._getInputMovementList(movement_list=movement_list,
- rounding=rounding):
+ input_movement_list = self._getInputMovementList(
+ movement_list=movement_list, rounding=rounding)
+ LOG('_getInputMovementList', 0, repr(input_movement_list))
+ for input_movement in input_movement_list:
# Merge movement and business path properties (core implementation)
# Lookup Business Process through composition (NOT UNION)
business_process = input_movement.asComposedDocument()
More information about the Erp5-report
mailing list