server/hooks.py
changeset 2695 56439c45781c
parent 2607 5d889b4928bb
child 2745 0dafa29ace1f
--- 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)