[or-cvs] [pytorctl/mysql-bwscanner] DIAF SQLAlchemy.
mikeperry at torproject.org
mikeperry at torproject.org
Sun Jul 4 06:10:18 UTC 2010
Author: Mike Perry <mikeperry-git at fscked.org>
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
More information about the tor-commits
mailing list