diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-05-25 14:48:32 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-05-25 14:48:32 +0000 |
commit | e7a1ce9176888e2d048134aff01f697ea3f674e2 (patch) | |
tree | 9e0efd531a83500c0d6242fd81db82db0b5a4e74 /lib/sqlalchemy/ext/assignmapper.py | |
parent | bb79e2e871d0a4585164c1a6ed626d96d0231975 (diff) | |
download | sqlalchemy-e7a1ce9176888e2d048134aff01f697ea3f674e2.tar.gz |
added 0.1.7 changes to changelog
latest sqlsoup from 0.1.7
s. cazzells fixes to assignmapper, threadlocal
Diffstat (limited to 'lib/sqlalchemy/ext/assignmapper.py')
-rw-r--r-- | lib/sqlalchemy/ext/assignmapper.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sqlalchemy/ext/assignmapper.py b/lib/sqlalchemy/ext/assignmapper.py index b8a676b75..07ba95a69 100644 --- a/lib/sqlalchemy/ext/assignmapper.py +++ b/lib/sqlalchemy/ext/assignmapper.py @@ -10,6 +10,9 @@ def monkeypatch_query_method(ctx, class_, name): def monkeypatch_objectstore_method(ctx, class_, name): def do(self, *args, **kwargs): session = ctx.current + if name == "flush": + # flush expects a list of objects + self = [self] return getattr(session, name)(self, *args, **kwargs) setattr(class_, name, do) |