diff -r 94cc7cad3d2d -r b9436fe77c9e hooks/integrity.py --- a/hooks/integrity.py Thu Dec 03 17:17:43 2009 +0100 +++ b/hooks/integrity.py Mon Dec 07 05:09:09 2009 -0800 @@ -167,7 +167,7 @@ entity = self.entity for attr in entity.edited_attributes: if schema.rschema(attr).final: - constraints = [c for c in entity.rdef(attr).constraints + constraints = [c for c in entity.e_schema.rdef(attr).constraints if isinstance(c, (RQLUniqueConstraint, RQLConstraint))] if constraints: _CheckConstraintsOp(self._cw, constraints=constraints,