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,10 +35,10 @@ class AttributeBlacklisted(PropertyExistence): ...@@ -35,10 +35,10 @@ class AttributeBlacklisted(PropertyExistence):
attribute unicity. attribute unicity.
Configuration example: Configuration example:
{ 'id' : 'title', { 'id' : 'title',
'description' : 'Title must be unique', 'description' : 'Title should not belong to blacklist words',
'type' : 'AttributeUnicity', 'type' : 'AttributeBlacklisted',
'title': "python: {'portal_type': object.getPortalType(), 'title': object.getTitle(), 'validation_state': 'validated'}", 'title' : "python: {'portal_type': object.getPortalType(), 'title': ('Foo', 'Bar',)}",
'condition' : 'object/getTitle', '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