server/sqlutils.py
changeset 6142 8bc6eac1fac1
parent 5768 1e73a466aa69
child 6333 e3994fcc21c3
--- a/server/sqlutils.py	Wed Aug 25 10:29:07 2010 +0200
+++ b/server/sqlutils.py	Wed Aug 25 10:29:18 2010 +0200
@@ -260,11 +260,10 @@
         """
         attrs = {}
         eschema = entity.e_schema
-        for attr in entity.edited_attributes:
-            value = entity[attr]
+        for attr, value in entity.cw_edited.iteritems():
             rschema = eschema.subjrels[attr]
             if rschema.final:
-                atype = str(entity.e_schema.destination(attr))
+                atype = str(eschema.destination(attr))
                 if atype == 'Boolean':
                     value = self.dbhelper.boolean_value(value)
                 elif atype == 'Password':