app/soc/logic/models/base.py
changeset 1517 a467d13e34ea
parent 1516 8df06dc877aa
child 1518 f6f43a1675eb
--- a/app/soc/logic/models/base.py	Thu Feb 26 16:51:35 2009 +0000
+++ b/app/soc/logic/models/base.py	Thu Feb 26 16:52:29 2009 +0000
@@ -358,7 +358,8 @@
       if name in self._skip_properties or (name not in entity_properties):
         continue
 
-      if self._updateField(entity, name, value):
+      if self._updateField(entity, entity_properties, name):
+        value = entity_properties[name]
         prop.__set__(entity, value)
 
     entity.put()
@@ -418,7 +419,7 @@
     # entity has been deleted call _onDelete
     self._onDelete(entity)
 
-  def _updateField(self, entity, name, value):
+  def _updateField(self, entity, entity_properties, name):
     """Hook called when a field is updated.
 
     Base classes should override if any special actions need to be