# HG changeset patch # User Alexandre Fayolle # Date 1260799327 -3600 # Node ID 6ec0fca7070170d7f0c235cc91430b4db5203470 # Parent a75a6e77071723093ce485fe91ee0106a6ef24ed# Parent b33a9f3e19d685c71297a0d718ea9d7b36949ed0 merge diff -r a75a6e770717 -r 6ec0fca70701 server/hooks.py --- a/server/hooks.py Mon Dec 14 14:58:41 2009 +0100 +++ b/server/hooks.py Mon Dec 14 15:02:07 2009 +0100 @@ -244,7 +244,8 @@ if session.is_super_session: return eschema = entity.e_schema - for attr, val in entity.items(): + for attr in entity.edited_attributes: + val = entity[attr]: if val is None: continue if eschema.subjrels[attr].final and \ @@ -261,7 +262,7 @@ return schema = session.vreg.schema for attr in entity.edited_attributes: - if schema.rschema(attr).final: + if eschema.subjrels[attr].final: constraints = [c for c in entity.e_schema.constraints(attr) if isinstance(c, (RQLConstraint, RQLUniqueConstraint))] if constraints: