diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-08-02 05:42:49 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-08-02 05:42:49 +0000 |
commit | b8b51fe4379936fe142c875ea0f17da14a12c27d (patch) | |
tree | 987fc4033cad747f0decfa80e38708a13d812d4c /lib/sqlalchemy/ext/assignmapper.py | |
parent | 9f23ec7423e98305f43a0b7a7ef894da74325329 (diff) | |
download | sqlalchemy-b8b51fe4379936fe142c875ea0f17da14a12c27d.tar.gz |
- sessionmaker module is out, replaced with simple function in session.py
- scoping/class instrumenting behavior of sessionmaker moved into new scoping module
which implements scoped_session() (subject to potential name change)
- SessionContext / assignmapper are deprecated, replaced with scoped_session()
Diffstat (limited to 'lib/sqlalchemy/ext/assignmapper.py')
-rw-r--r-- | lib/sqlalchemy/ext/assignmapper.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sqlalchemy/ext/assignmapper.py b/lib/sqlalchemy/ext/assignmapper.py index cab5a9eae..730b5313b 100644 --- a/lib/sqlalchemy/ext/assignmapper.py +++ b/lib/sqlalchemy/ext/assignmapper.py @@ -26,6 +26,7 @@ def _monkeypatch_session_method(name, ctx, class_): setattr(class_, name, do) def assign_mapper(ctx, class_, *args, **kwargs): + util.warn_deprecated("assign_mapper is deprecated. Use scoped_session() instead.") extension = kwargs.pop('extension', None) if extension is not None: extension = util.to_list(extension) |