diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-09-23 00:06:10 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-09-23 00:06:10 +0000 |
commit | f6baed941d8f9c5a076e7d28c9ef1b1a94bfc3fd (patch) | |
tree | 54f5e1ae99b151009004558e698542fb212e4ddf /lib/sqlalchemy/attributes.py | |
parent | 2e6a25f47914ab76773c596d4502924048724c6e (diff) | |
download | sqlalchemy-f6baed941d8f9c5a076e7d28c9ef1b1a94bfc3fd.tar.gz |
- fixed unfortunate mutating-dictionary glitch from previous checkin
- added "batch=True" flag to mapper; if False, save_obj
will fully save one object at a time including calls
to before_XXXX and after_XXXX
Diffstat (limited to 'lib/sqlalchemy/attributes.py')
-rw-r--r-- | lib/sqlalchemy/attributes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/attributes.py b/lib/sqlalchemy/attributes.py index 2d3f910d8..84a1d58fb 100644 --- a/lib/sqlalchemy/attributes.py +++ b/lib/sqlalchemy/attributes.py @@ -616,7 +616,7 @@ class AttributeManager(object): def noninherited_managed_attributes(self, class_): if not isinstance(class_, type): raise repr(class_) + " is not a type" - for key in class_.__dict__: + for key in list(class_.__dict__): value = getattr(class_, key, None) if isinstance(value, InstrumentedAttribute): yield value |