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

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Apr 29 20:12:51 CEST 2009


Author: nicolas
Date: Wed Apr 29 20:12:49 2009
New Revision: 26722

URL: http://svn.erp5.org?rev=26722&view=rev
Log:
Update usage sample in docstring

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

Modified: erp5/trunk/products/ERP5Type/Constraint/AttributeBlacklisted.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Constraint/AttributeBlacklisted.py?rev=26722&r1=26721&r2=26722&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Constraint/AttributeBlacklisted.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Constraint/AttributeBlacklisted.py [utf8] Wed Apr 29 20:12:49 2009
@@ -35,10 +35,10 @@
     attribute unicity.
     Configuration example:
     { 'id'            : 'title',
-      'description'   : 'Title must be unique',
-      'type'          : 'AttributeUnicity',
-      'title': "python: {'portal_type': object.getPortalType(), 'title': object.getTitle(), 'validation_state': 'validated'}",
-      'condition' : 'object/getTitle',
+      'description'   : 'Title should not belong to blacklist words',
+      'type'          : 'AttributeBlacklisted',
+      'title'         : "python: {'portal_type': object.getPortalType(), 'title': ('Foo', 'Bar',)}",
+      'condition'     : 'object/getTitle',
     },
   """
 




More information about the Erp5-report mailing list