fix bad merges
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 13 Oct 2009 08:48:00 +0200
changeset 3646 3bba270202ef
parent 3645 7272b793d7c9
child 3647 2941f4a0aab9
fix bad merges
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)]