]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
enhancements to lazyloader. now you can pickle objects with lazyload.
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 15 Nov 2005 05:23:43 +0000 (05:23 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 15 Nov 2005 05:23:43 +0000 (05:23 +0000)
lib/sqlalchemy/attributes.py

index 6f14566adbcaabaedc081789605235a0441cd43e..90f3fb949e5052082963bcdae33c36e893b0e90d 100644 (file)
@@ -248,6 +248,12 @@ class AttributeManager(object):
             obj.__dict__['_managed_attributes'] = attr
         return attr
 
+    def reset_history(self, obj, key):
+        try:
+            del self.attribute_history(obj)[key]
+        except KeyError:
+            pass
+        
     def class_managed(self, class_):
         try:
             attr = getattr(class_, '_class_managed_attributes')