# HG changeset patch # User Sylvain Thénault # Date 1249485753 -7200 # Node ID 56439c45781cfa2a6275203ba305103a42f4d65f # Parent 4303ff921a9bfc8e1ded8e647ad22f154236883e [hooks] check key or value is actually edited diff -r 4303ff921a9b -r 56439c45781c server/hooks.py --- a/server/hooks.py Wed Aug 05 10:52:09 2009 +0200 +++ b/server/hooks.py Wed Aug 05 17:22:33 2009 +0200 @@ -536,6 +536,9 @@ def after_update_eproperty(session, entity): + if not ('pkey' in entity.edited_attributes or + 'value' in entity.edited_attributes): + return key, value = entity.pkey, entity.value try: value = session.vreg.typed_value(key, value)