test/data/rewrite/schema.py
branchstable
changeset 7555 c3bf459268d7
parent 6337 6686ca1826a9
child 7843 3b51806da60b
equal deleted inserted replaced
7551:2d4ba5b984dc 7555:c3bf459268d7
    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'),