Commit f0e8d337 authored by Jérome Perrin's avatar Jérome Perrin

Update docstring, this constraint does not fix consistency


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21028 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9b5e417d
......@@ -30,8 +30,9 @@ from Products.ERP5Type.Constraint import Constraint
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 @@ class ContentExistence(Constraint):
" 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 = []
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment