diff -r 000000000000 -r b97547f5f1fa server/test/data/migrschema/Affaire.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/server/test/data/migrschema/Affaire.py Wed Nov 05 15:52:50 2008 +0100 @@ -0,0 +1,21 @@ + +class Affaire(EntityType): + permissions = { + 'read': ('managers', 'users', 'guests'), + 'add': ('managers', ERQLExpression('X concerne S, S owned_by U')), + 'update': ('managers', 'owners', ERQLExpression('X concerne S, S owned_by U')), + 'delete': ('managers', 'owners', ERQLExpression('X concerne S, S owned_by U')), + } + + ref = String(fulltextindexed=True, indexed=True, + constraints=[SizeConstraint(16)]) + sujet = String(fulltextindexed=True, + constraints=[SizeConstraint(256)]) + +class concerne(RelationType): + permissions = { + 'read': ('managers', 'users', 'guests'), + 'add': ('managers', RRQLExpression('U has_update_permission S')), + 'delete': ('managers', RRQLExpression('O owned_by U')), + } +