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

nobody at svn.erp5.org nobody at svn.erp5.org
Tue May 20 13:37:34 CEST 2008


Author: jerome
Date: Tue May 20 13:37:34 2008
New Revision: 21028

URL: http://svn.erp5.org?rev=21028&view=rev
Log:
Update docstring, this constraint does not fix consistency

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

Modified: erp5/trunk/products/ERP5Type/Constraint/ContentExistence.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Constraint/ContentExistence.py?rev=21028&r1=21027&r2=21028&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Constraint/ContentExistence.py (original)
+++ erp5/trunk/products/ERP5Type/Constraint/ContentExistence.py Tue May 20 13:37:34 2008
@@ -30,8 +30,9 @@
 
 class ContentExistence(Constraint):
   """
-    This constraint class allows to check / fix
-    that object contains one subobject.
+    This constraint class allows to check that an object contains at least one
+    subobject.
+
     Configuration example:
     { 'id'            : 'line',
       'description'   : 'Object have to contain a Line',
@@ -48,10 +49,7 @@
                    " subobject of portal portal type ${portal_type}"
 
   def checkConsistency(self, obj, fixit=0):
-    """
-      This is the check method, we return a list of string,
-      each string corresponds to an error.
-      We are checking that object contains a subobject.
+    """Checks that object contains a subobject.
     """
     from Products.ERP5Type.Message import Message
     error_list = []




More information about the Erp5-report mailing list