# HG changeset patch # User Alexandre Fayolle # Date 1260809685 -3600 # Node ID 85bb30fb6d9b14c319f626c60f7f4e2a8c9c76cf # Parent 8a9a00a9405c9d7530c25c56bc460ec2dc7cf8c4 fix name error diff -r 8a9a00a9405c -r 85bb30fb6d9b 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)