schemas/bootstrap.py
changeset 9395 96dba2efd16d
parent 9375 8e88576787c3
child 9956 19a683a0047c
equal deleted inserted replaced
9394:4b89ca0b11ad 9395:96dba2efd16d
   234 
   234 
   235 class add_permission_cwgroup(RelationDefinition):
   235 class add_permission_cwgroup(RelationDefinition):
   236     """groups allowed to add entities/relations of this type"""
   236     """groups allowed to add entities/relations of this type"""
   237     __permissions__ = PUB_SYSTEM_REL_PERMS
   237     __permissions__ = PUB_SYSTEM_REL_PERMS
   238     name = 'add_permission'
   238     name = 'add_permission'
   239     subject = ('CWEType', 'CWRelation')
   239     subject = ('CWEType', 'CWRelation', 'CWAttribute')
   240     object = 'CWGroup'
   240     object = 'CWGroup'
   241     cardinality = '**'
   241     cardinality = '**'
   242 
   242 
   243 class delete_permission_cwgroup(RelationDefinition):
   243 class delete_permission_cwgroup(RelationDefinition):
   244     """groups allowed to delete entities/relations of this type"""
   244     """groups allowed to delete entities/relations of this type"""
   267 
   267 
   268 class add_permission_rqlexpr(RelationDefinition):
   268 class add_permission_rqlexpr(RelationDefinition):
   269     """rql expression allowing to add entities/relations of this type"""
   269     """rql expression allowing to add entities/relations of this type"""
   270     __permissions__ = PUB_SYSTEM_REL_PERMS
   270     __permissions__ = PUB_SYSTEM_REL_PERMS
   271     name = 'add_permission'
   271     name = 'add_permission'
   272     subject = ('CWEType', 'CWRelation')
   272     subject = ('CWEType', 'CWRelation', 'CWAttribute')
   273     object = 'RQLExpression'
   273     object = 'RQLExpression'
   274     cardinality = '*?'
   274     cardinality = '*?'
   275     composite = 'subject'
   275     composite = 'subject'
   276 
   276 
   277 class delete_permission_rqlexpr(RelationDefinition):
   277 class delete_permission_rqlexpr(RelationDefinition):