[Erp5-report] r18925 - /erp5/trunk/products/ERP5Type/Constraint/Constraint.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jan 30 14:57:56 CET 2008


Author: romain
Date: Wed Jan 30 14:57:55 2008
New Revision: 18925

URL: http://svn.erp5.org?rev=18925&view=rev
Log:
Explicitely use named parameter.

Modified:
    erp5/trunk/products/ERP5Type/Constraint/Constraint.py

Modified: erp5/trunk/products/ERP5Type/Constraint/Constraint.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Constraint/Constraint.py?rev=18925&r1=18924&r2=18925&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Constraint/Constraint.py (original)
+++ erp5/trunk/products/ERP5Type/Constraint/Constraint.py Wed Jan 30 14:57:55 2008
@@ -79,8 +79,10 @@
       """Generic method used to generate error in checkConsistency.
       """
       if error_message is not None:
-        msg = ConsistencyMessage(self, obj.getRelativeUrl(),
-                                 error_message, mapping)
+        msg = ConsistencyMessage(self, 
+                                 object_relative_url=obj.getRelativeUrl(),
+                                 message=error_message, 
+                                 mapping=mapping)
         return msg
 
     def _checkConstraintCondition(self, obj):




More information about the Erp5-report mailing list