From: Mike Bayer Date: Thu, 21 Jan 2010 16:23:22 +0000 (+0000) Subject: add autoflush to the list of attributes exported on scoped_session X-Git-Tag: rel_0_6beta1~46 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d6aa10d7e96147a4f9954fce009770e6632e561b;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git add autoflush to the list of attributes exported on scoped_session --- diff --git a/lib/sqlalchemy/orm/scoping.py b/lib/sqlalchemy/orm/scoping.py index a8ed9c9108..0df9e8000e 100644 --- a/lib/sqlalchemy/orm/scoping.py +++ b/lib/sqlalchemy/orm/scoping.py @@ -135,7 +135,7 @@ def makeprop(name): def get(self): return getattr(self.registry(), name) return property(get, set) -for prop in ('bind', 'dirty', 'deleted', 'new', 'identity_map', 'is_active'): +for prop in ('bind', 'dirty', 'deleted', 'new', 'identity_map', 'is_active', 'autoflush'): setattr(ScopedSession, prop, makeprop(prop)) def clslevel(name):