changeset 389:53ee70e9417e

oops, one more change propagated from hg messup
author catherine@DellZilla
date Tue, 06 Oct 2009 15:16:47 -0400
parents 841573c48676
children 3905ef976608
files sqlpython/schemagroup.py sqlpython/sqlpython.py
diffstat 2 files changed, 3 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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')
--- 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