diff -r eae23c40627a -r 6a14cff373c3 hooks/integrity.py --- a/hooks/integrity.py Tue Dec 08 10:58:56 2009 +0100 +++ b/hooks/integrity.py Tue Dec 08 11:12:42 2009 +0100 @@ -182,8 +182,7 @@ entity = self.entity eschema = entity.e_schema for attr in entity.edited_attributes: - if eschema.subject_relation(attr).final and \ - eschema.has_unique_values(attr): + if eschema.subjrels[attr].final and eschema.has_unique_values(attr): val = entity[attr] if val is None: continue