diff -r 13dd3a57dabb -r bde625698f44 server/test/data/schema.py --- a/server/test/data/schema.py Tue Apr 01 14:46:55 2014 +0200 +++ b/server/test/data/schema.py Tue Apr 01 18:09:46 2014 +0200 @@ -22,6 +22,7 @@ from yams.constraints import SizeConstraint from cubicweb.schema import (WorkflowableEntityType, RQLConstraint, RQLUniqueConstraint, + RQLVocabularyConstraint, ERQLExpression, RRQLExpression) class Affaire(WorkflowableEntityType): @@ -157,6 +158,8 @@ } subject = 'Personne' object = 'Societe' + constraints = [RQLVocabularyConstraint('S owned_by U'), + RQLVocabularyConstraint('S created_by U')] class comments(RelationDefinition): subject = 'Comment' @@ -195,6 +198,10 @@ class evaluee(RelationDefinition): subject = ('Personne', 'CWUser', 'Societe') object = ('Note') + constraints = [ + RQLVocabularyConstraint('S created_by U'), + RQLVocabularyConstraint('S owned_by U'), + ] class ecrit_par(RelationType): inlined = True