diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-03-25 00:17:51 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-03-25 00:17:51 +0000 |
commit | fcbd4f153980384089ce8d519607a1db8e7e8838 (patch) | |
tree | 864dce90ec6b0ce420bc6f055bb7e17f667482f1 /lib/sqlalchemy/attributes.py | |
parent | 03bb7a9641eb936fc6f5867a9df57f348aa674c9 (diff) | |
download | sqlalchemy-fcbd4f153980384089ce8d519607a1db8e7e8838.tar.gz |
added expunge() method to objectstore
correction in attributes reset_history to really reset in all cases
added unit tests testing refresh()/expire() bug that was fixed by reset_history thing
Diffstat (limited to 'lib/sqlalchemy/attributes.py')
-rw-r--r-- | lib/sqlalchemy/attributes.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sqlalchemy/attributes.py b/lib/sqlalchemy/attributes.py index bd730a109..bd5868baf 100644 --- a/lib/sqlalchemy/attributes.py +++ b/lib/sqlalchemy/attributes.py @@ -397,7 +397,10 @@ class AttributeManager(object): x.clear() del self.attribute_history(obj)[key] except KeyError: - pass + try: + del obj.__dict__[key] + except KeyError: + pass def class_managed(self, class_): """returns a dictionary of "history container definitions", which is attached to a |