diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-10-17 02:03:00 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-10-17 02:03:00 +0000 |
commit | 180d3741997c1471b9199334d6076e45cd581d62 (patch) | |
tree | de7b56896d440e375a10df1440f6cccec11047cc /lib/sqlalchemy/ext/assignmapper.py | |
parent | bc698d778d9bc8ddf2ee676fde24326f819da7dc (diff) | |
download | sqlalchemy-180d3741997c1471b9199334d6076e45cd581d62.tar.gz |
reorganizing classnames a bit, flagging "private" classes in the sql package,
getting the generated docs to look a little nicer.
fixes to extensions, sqlsoup etc. to be compatible with recent API tweaks
Diffstat (limited to 'lib/sqlalchemy/ext/assignmapper.py')
-rw-r--r-- | lib/sqlalchemy/ext/assignmapper.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/ext/assignmapper.py b/lib/sqlalchemy/ext/assignmapper.py index 5b77052e2..e672d835e 100644 --- a/lib/sqlalchemy/ext/assignmapper.py +++ b/lib/sqlalchemy/ext/assignmapper.py @@ -1,9 +1,9 @@ -from sqlalchemy import mapper, util +from sqlalchemy import mapper, util, Query import types def monkeypatch_query_method(ctx, class_, name): def do(self, *args, **kwargs): - query = class_.mapper.query(session=ctx.current) + query = Query(class_, session=ctx.current) return getattr(query, name)(*args, **kwargs) setattr(class_, name, classmethod(do)) |