entity.py
branchstable
changeset 2875 b7399ef8b3e0
parent 2872 9d641d98cc86
child 2877 e469f3602858
--- a/entity.py	Mon Aug 17 12:11:04 2009 +0200
+++ b/entity.py	Mon Aug 17 12:11:54 2009 +0200
@@ -944,11 +944,9 @@
         return eobj.get_value(self._attrname)
 
     def __set__(self, eobj, value):
-        # XXX bw compat
-        # would be better to generate UPDATE queries than the current behaviour
-        eobj.warning("deprecated usage, don't use 'entity.attr = val' notation)")
         eobj[self._attrname] = value
-
+        if hasattr(eobj, 'edited_attributes'):
+            eobj.edited_attributes.add(self._attrname)
 
 class Relation(object):
     """descriptor that controls schema relation access"""