From 475c9de3b478a74970b9ea115bfa0e2703694418 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Sun, 8 Mar 2009 14:40:52 +0100 Subject: [PATCH] switch to SQLAlchemy 0.5 syntax for transactional sessions --- pyalchemybiz/model/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyalchemybiz/model/__init__.py b/pyalchemybiz/model/__init__.py index 7b12f5b..1f7b6b7 100644 --- a/pyalchemybiz/model/__init__.py +++ b/pyalchemybiz/model/__init__.py @@ -12,7 +12,7 @@ log = logging.getLogger(__name__) def init_model(engine): """Call me before using any of the tables or classes in the model.""" - sm = orm.sessionmaker(autoflush=True, transactional=True, bind=engine) + sm = orm.sessionmaker(autoflush=True, autocommit=False, bind=engine) meta.engine = engine meta.Session = orm.scoped_session(sm)