[Erp5-report] r35783 kazuhiko - /erp5/trunk/products/ERP5Legacy/Document/Rule.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon May 31 14:16:41 CEST 2010


Author: kazuhiko
Date: Mon May 31 14:16:36 2010
New Revision: 35783

URL: http://svn.erp5.org?rev=35783&view=rev
Log:
output more information if NotImplementedError happens in case of compensation needed.

Modified:
    erp5/trunk/products/ERP5Legacy/Document/Rule.py

Modified: erp5/trunk/products/ERP5Legacy/Document/Rule.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Legacy/Document/Rule.py?rev=35783&r1=35782&r2=35783&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Legacy/Document/Rule.py [utf8] (original)
+++ erp5/trunk/products/ERP5Legacy/Document/Rule.py [utf8] Mon May 31 14:16:36 2010
@@ -414,7 +414,7 @@
               break
           else:
             # no modifiable movement was found, need to compensate by quantity
-            raise NotImplementedError('Need to generate quantity compensation')
+            raise NotImplementedError('Need to generate quantity compensation in %s, because all matched movements are immutable : %r.' % (applied_rule.getRelativeUrl(), [x.getRelativeUrl() for x in p_matched_list]))
 
         for movement in p_matched_list:
           if movement in (mutable_movement_list \




More information about the Erp5-report mailing list