summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/attributes.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-09-23 00:06:10 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-09-23 00:06:10 +0000
commitf6baed941d8f9c5a076e7d28c9ef1b1a94bfc3fd (patch)
tree54f5e1ae99b151009004558e698542fb212e4ddf /lib/sqlalchemy/attributes.py
parent2e6a25f47914ab76773c596d4502924048724c6e (diff)
downloadsqlalchemy-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.py2
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