diff -r 8cbf18c703be -r d1cbf77db999 entity.py --- a/entity.py Wed Dec 02 11:04:40 2009 +0100 +++ b/entity.py Wed Dec 02 11:53:25 2009 +0100 @@ -769,6 +769,7 @@ insertsecurity = (rtype.has_local_role('add') and not rtype.has_perm(self.req, 'add', **securitycheck_args)) constraints = rtype.rproperty(subjtype, objtype, 'constraints') + # XXX consider constraint.mainvars to check if constraint apply if vocabconstraints: # RQLConstraint is a subclass for RQLVocabularyConstraint, so they # will be included as well