# HG changeset patch # User Sylvain Thénault # Date 1255416480 -7200 # Node ID 3bba270202ef2036f2cd0463d8da238c51a69926 # Parent 7272b793d7c9f4f4a9a266f6c27104641db88b9f fix bad merges diff -r 7272b793d7c9 -r 3bba270202ef hooks/integrity.py --- a/hooks/integrity.py Tue Oct 13 08:47:41 2009 +0200 +++ b/hooks/integrity.py Tue Oct 13 08:48:00 2009 +0200 @@ -9,6 +9,7 @@ __docformat__ = "restructuredtext en" from cubicweb import ValidationError +from cubicweb.schema import RQLVocabularyConstraint from cubicweb.selectors import entity_implements from cubicweb.common.uilib import soup2xhtml from cubicweb.server import hook @@ -165,7 +166,8 @@ def __call__(self): schema = self._cw.vreg.schema - for attr in self.entity.edited_attributes: + entity = self.entity + for attr in entity.edited_attributes: if schema.rschema(attr).is_final(): constraints = [c for c in entity.e_schema.constraints(attr) if isinstance(c, RQLVocabularyConstraint)]