129 'the request user. For relation rql expression, ' |
129 'the request user. For relation rql expression, ' |
130 'S, O and U are predefined respectivly to the current ' |
130 'S, O and U are predefined respectivly to the current ' |
131 'relation\'subject, object and to ' |
131 'relation\'subject, object and to ' |
132 'the request user. ')) |
132 'the request user. ')) |
133 |
133 |
134 read_permission = ObjectRelation(('CWEType', 'CWAttribute', 'CWRelation'), cardinality='+?', composite='subject', |
134 read_permission = ObjectRelation(('CWEType', 'CWAttribute', 'CWRelation'), cardinality='*?', composite='subject', |
135 description=_('rql expression allowing to read entities/relations of this type')) |
135 description=_('rql expression allowing to read entities/relations of this type')) |
136 add_permission = ObjectRelation(('CWEType', 'CWAttribute', 'CWRelation'), cardinality='*?', composite='subject', |
136 add_permission = ObjectRelation(('CWEType', 'CWAttribute', 'CWRelation'), cardinality='*?', composite='subject', |
137 description=_('rql expression allowing to add entities/relations of this type')) |
137 description=_('rql expression allowing to add entities/relations of this type')) |
138 delete_permission = ObjectRelation(('CWEType', 'CWAttribute', 'CWRelation'), cardinality='*?', composite='subject', |
138 delete_permission = ObjectRelation(('CWEType', 'CWAttribute', 'CWRelation'), cardinality='*?', composite='subject', |
139 description=_('rql expression allowing to delete entities/relations of this type')) |
139 description=_('rql expression allowing to delete entities/relations of this type')) |
160 """define a CubicWeb users group""" |
160 """define a CubicWeb users group""" |
161 __permissions__ = META_ETYPE_PERMS |
161 __permissions__ = META_ETYPE_PERMS |
162 name = String(required=True, indexed=True, internationalizable=True, |
162 name = String(required=True, indexed=True, internationalizable=True, |
163 unique=True, maxsize=64) |
163 unique=True, maxsize=64) |
164 |
164 |
165 read_permission = ObjectRelation(('CWEType', 'CWAttribute', 'CWRelation'), cardinality='+*', |
165 read_permission = ObjectRelation(('CWEType', 'CWAttribute', 'CWRelation'), cardinality='**', |
166 description=_('groups allowed to read entities/relations of this type')) |
166 description=_('groups allowed to read entities/relations of this type')) |
167 add_permission = ObjectRelation(('CWEType', 'CWAttribute', 'CWRelation'), |
167 add_permission = ObjectRelation(('CWEType', 'CWAttribute', 'CWRelation'), |
168 description=_('groups allowed to add entities/relations of this type')) |
168 description=_('groups allowed to add entities/relations of this type')) |
169 delete_permission = ObjectRelation(('CWEType', 'CWAttribute', 'CWRelation'), |
169 delete_permission = ObjectRelation(('CWEType', 'CWAttribute', 'CWRelation'), |
170 description=_('groups allowed to delete entities/relations of this type')) |
170 description=_('groups allowed to delete entities/relations of this type')) |