From b8b51fe4379936fe142c875ea0f17da14a12c27d Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 2 Aug 2007 05:42:49 +0000 Subject: - 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() --- lib/sqlalchemy/ext/assignmapper.py | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/sqlalchemy/ext/assignmapper.py') 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) -- cgit v1.2.1