fix name error stable
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>
Mon, 14 Dec 2009 17:54:45 +0100
branchstable
changeset 4119 85bb30fb6d9b
parent 4118 8a9a00a9405c
child 4120 21517d42f2ed
child 4122 3c3d2a102d4c
fix name error
server/hooks.py
--- a/server/hooks.py	Mon Dec 14 16:25:25 2009 +0100
+++ b/server/hooks.py	Mon Dec 14 17:54:45 2009 +0100
@@ -260,7 +260,7 @@
 def cstrcheck_after_update_attributes(session, entity):
     if session.is_super_session:
         return
-    schema = session.vreg.schema
+    eschema = entity.e_schema
     for attr in entity.edited_attributes:
         if eschema.subjrels[attr].final:
             constraints = [c for c in entity.e_schema.constraints(attr)