Added ``.autocommit`` attribute to :class:`.scoped_session`, proxying
the ``.autocommit`` attribute of the underling :class:`.Session`
currently assigned to the thread. Pull request courtesy
Ben Fagin.
Change-Id: Iff741978bd67762f4c7375a23cc151b26192042b
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/372
.. changelog::
:version: 1.2.0b1
+ .. change:: scoped_autocommit
+ :tags: feature, orm
+
+ Added ``.autocommit`` attribute to :class:`.scoped_session`, proxying
+ the ``.autocommit`` attribute of the underling :class:`.Session`
+ currently assigned to the thread. Pull request courtesy
+ Ben Fagin.
+
.. change:: 4009
:tags: feature, mysql
:tickets: 4009
return property(get, set)
for prop in ('bind', 'dirty', 'deleted', 'new', 'identity_map',
- 'is_active', 'autoflush', 'no_autoflush', 'info'):
+ 'is_active', 'autoflush', 'no_autoflush', 'info',
+ 'autocommit'):
setattr(scoped_session, prop, makeprop(prop))