[Erp5-report] r37333 jerome - /erp5/trunk/products/ERP5/Tool/SimulationTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Jul 28 14:04:05 CEST 2010
Author: jerome
Date: Wed Jul 28 14:04:04 2010
New Revision: 37333
URL: http://svn.erp5.org?rev=37333&view=rev
Log:
use constants for log levels
Modified:
erp5/trunk/products/ERP5/Tool/SimulationTool.py
Modified: erp5/trunk/products/ERP5/Tool/SimulationTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/SimulationTool.py?rev=37333&r1=37332&r2=37333&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/SimulationTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Tool/SimulationTool.py [utf8] Wed Jul 28 14:04:04 2010
@@ -36,7 +36,7 @@ from Products.ERP5Type.Tool.BaseTool imp
from Products.ERP5 import _dtmldir
-from zLOG import LOG
+from zLOG import LOG, PROBLEM
from Products.ERP5.Capacity.GLPK import solve
try:
@@ -1242,7 +1242,7 @@ class SimulationTool(BaseTool):
# optimisation when from_date is given), emit a log.
# This can happen if there are more date parameters than mentioned
# above.
- LOG('SimulationTool', 100, 'There is more than one date condition'
+ LOG('SimulationTool', PROBLEM, 'There is more than one date condition'
' so optimisation got disabled. The result of this call will be'
' correct but it requires investigation as some cases might'
' have gone unnoticed and produced wrong results.')
@@ -1420,7 +1420,8 @@ class SimulationTool(BaseTool):
elif line_a[key] == line_b[key]:
result[key] = line_a[key]
elif key not in ('date', 'stock_uid', 'path'):
- LOG('InventoryTool.getInventoryList.addLineValues', 0,
+ LOG('InventoryTool.getInventoryList.addLineValues',
+ PROBLEM,
'mismatch for %s column: %s and %s' % \
(key, line_a[key], line_b[key]))
return result
More information about the Erp5-report
mailing list