# HG changeset patch # User catherine@DellZilla # Date 1254856607 14400 # Node ID 53ee70e9417e65b8abd021a54181371f16f3bdc6 # Parent 841573c4867662be18387cb8b99edb6036828587 oops, one more change propagated from hg messup diff -r 841573c48676 -r 53ee70e9417e sqlpython/schemagroup.py --- a/sqlpython/schemagroup.py Tue Oct 06 15:13:04 2009 -0400 +++ b/sqlpython/schemagroup.py Tue Oct 06 15:16:47 2009 -0400 @@ -1,12 +1,5 @@ import gerald, re, datetime, threading -def get_schemagroup(rdbms, connstr, connection, user): - gerald_connstring = connstr.split('/?mode=')[0].replace('//','/') - if rdbms == 'oracle': - childtype = OracleSchemaGroup - grp = childtype(gerald_connstring, connection, user) - return grp - def gerald_connection_string(sqlalchemy_connection_string): return sqlalchemy_connection_string.split('/?mode=')[0].replace('//','/') @@ -42,6 +35,8 @@ self.refresh_thread = RefreshGroupThread(self) self.complete = False # do we need a second thread for a second run? + def refresh_asynch(self): + self.refresh_thread.start() def refresh(self): curs = self.connection.cursor() curs.execute('SELECT sysdate FROM dual') diff -r 841573c48676 -r 53ee70e9417e sqlpython/sqlpython.py --- a/sqlpython/sqlpython.py Tue Oct 06 15:13:04 2009 -0400 +++ b/sqlpython/sqlpython.py Tue Oct 06 15:16:47 2009 -0400 @@ -105,7 +105,7 @@ 'schemas': schemagroup.SchemaDict({}, rdbms=rdbms, user=user, connection=self.conn, connection_string=arg)} s = conn['schemas'] - s.refresh() + s.refresh_asynch() return conn def ora_connect(self, arg): modeval = 0