# HG changeset patch # User Sylvain Thénault # Date 1264089810 -3600 # Node ID 3b72c7e6149d32bb5c2d27551e34b6adbb4250c2 # Parent e12ee4a009bc967de8debb723b934a735d2cedd0 fix #636936: read_permission relation should not be mandatory diff -r e12ee4a009bc -r 3b72c7e6149d misc/migration/3.6.0_Any.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/misc/migration/3.6.0_Any.py Thu Jan 21 17:03:30 2010 +0100 @@ -0,0 +1,1 @@ +sync_schema_props_perms('read_permission', syncperms=False) # fix read_permission cardinality diff -r e12ee4a009bc -r 3b72c7e6149d schemas/bootstrap.py --- a/schemas/bootstrap.py Thu Jan 21 11:08:41 2010 +0100 +++ b/schemas/bootstrap.py Thu Jan 21 17:03:30 2010 +0100 @@ -131,7 +131,7 @@ 'relation\'subject, object and to ' 'the request user. ')) - read_permission = ObjectRelation(('CWEType', 'CWAttribute', 'CWRelation'), cardinality='+?', composite='subject', + read_permission = ObjectRelation(('CWEType', 'CWAttribute', 'CWRelation'), cardinality='*?', composite='subject', description=_('rql expression allowing to read entities/relations of this type')) add_permission = ObjectRelation(('CWEType', 'CWAttribute', 'CWRelation'), cardinality='*?', composite='subject', description=_('rql expression allowing to add entities/relations of this type')) @@ -162,7 +162,7 @@ name = String(required=True, indexed=True, internationalizable=True, unique=True, maxsize=64) - read_permission = ObjectRelation(('CWEType', 'CWAttribute', 'CWRelation'), cardinality='+*', + read_permission = ObjectRelation(('CWEType', 'CWAttribute', 'CWRelation'), cardinality='**', description=_('groups allowed to read entities/relations of this type')) add_permission = ObjectRelation(('CWEType', 'CWAttribute', 'CWRelation'), description=_('groups allowed to add entities/relations of this type'))