Commit 36bcf3bc authored by Nicolas Delaby's avatar Nicolas Delaby

Update usage sample in docstring

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26722 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b3e62935
......@@ -35,9 +35,9 @@ class AttributeBlacklisted(PropertyExistence):
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'}",
'description' : 'Title should not belong to blacklist words',
'type' : 'AttributeBlacklisted',
'title' : "python: {'portal_type': object.getPortalType(), 'title': ('Foo', 'Bar',)}",
'condition' : 'object/getTitle',
},
"""
......
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