[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] [pytorctl/mysql-bwscanner] DIAF SQLAlchemy.



Author: Mike Perry <mikeperry-git@xxxxxxxxxx>
Date: Sat, 3 Jul 2010 23:09:55 -0700
Subject: DIAF SQLAlchemy.
Commit: 2a85719adf6ed8512c01de426136831b6af0f49d

---
 SQLSupport.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/SQLSupport.py b/SQLSupport.py
index 9776ed6..8c55018 100644
--- a/SQLSupport.py
+++ b/SQLSupport.py
@@ -47,6 +47,7 @@ tc_session = scoped_session(sessionmaker(autoflush=True))
 def setup_db(db_uri, echo=False, drop=False):
   tc_engine = create_engine(db_uri, echo=echo)
   tc_metadata.bind = tc_engine
+  tc_session.configure(bind = tc_engine)
   tc_metadata.echo = echo
 
   setup_all()
-- 
1.7.1