From 9b8179e2ab0c8374a9b1ca3b2a14a9b2c3e99fee Mon Sep 17 00:00:00 2001 From: Adam Glasgall Date: Thu, 21 Mar 2013 22:07:30 -0700 Subject: [PATCH] more API updates --- debian/changelog | 6 ++++++ python/database/models.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 9776bf4..c644b4d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +invirt-database (0.2.8~glasgall8) precise; urgency=low + + * More API updates + + -- Adam Glasgall Thu, 21 Mar 2013 22:07:09 -0700 + invirt-database (0.2.8~glasgall7) precise; urgency=low * Add compatibility hack to work around removal of deprecated APIs diff --git a/python/database/models.py b/python/database/models.py index 236598a..dc87e3b 100644 --- a/python/database/models.py +++ b/python/database/models.py @@ -51,7 +51,7 @@ __all__ = ['meta', ] meta = ThreadLocalMetaData() -session = orm.scoped_session(orm.sessionmaker(transactional=False, autoflush=False)) +session = orm.scoped_session(orm.sessionmaker(autocommit=True, autoflush=False)) machine_table = Table('machines', meta, Column('machine_id', Integer, primary_key=True, nullable=False), -- 1.7.9.5