25 'add': ('managers', ERQLExpression('X concerne S, S owned_by U')), |
25 'add': ('managers', ERQLExpression('X concerne S, S owned_by U')), |
26 'update': ('managers', 'owners', ERQLExpression('X in_state S, S name in ("pitetre", "en cours")')), |
26 'update': ('managers', 'owners', ERQLExpression('X in_state S, S name in ("pitetre", "en cours")')), |
27 'delete': ('managers', 'owners', ERQLExpression('X concerne S, S owned_by U')), |
27 'delete': ('managers', 'owners', ERQLExpression('X concerne S, S owned_by U')), |
28 } |
28 } |
29 ref = String(fulltextindexed=True, indexed=True, maxsize=16) |
29 ref = String(fulltextindexed=True, indexed=True, maxsize=16) |
30 documented_by = SubjectRelation('Card') |
30 documented_by = SubjectRelation('Card', cardinality='1*') |
31 concerne = SubjectRelation(('Societe', 'Note')) |
31 concerne = SubjectRelation(('Societe', 'Note'), cardinality='1*') |
32 |
32 |
33 |
33 |
34 class Societe(EntityType): |
34 class Societe(EntityType): |
35 __permissions__ = { |
35 __permissions__ = { |
36 'read': ('managers', 'users', 'guests'), |
36 'read': ('managers', 'users', 'guests'), |