changeset 4190 | 742e3eb16f81 |
parent 4181 | c79135c217df |
child 4307 | 7fba9c34c88f |
--- a/hooks/integrity.py Tue Dec 22 19:26:59 2009 +0100 +++ b/hooks/integrity.py Tue Dec 22 19:27:26 2009 +0100 @@ -164,7 +164,7 @@ events = ('after_add_entity', 'after_update_entity') def __call__(self): - eschema = entity.eschema + eschema = self.entity.e_schema for attr in self.entity.edited_attributes: if eschema.subjrels[attr].final: constraints = [c for c in eschema.rdef(attr).constraints