dabo Commit
Revision 4920
Date: 2009-01-11 12:28:52 -0800 (Sun, 11 Jan 2009)
Author: Ed
Trac: http://trac.dabodev.com/changeset/4920
Changed:
U trunk/dabo/db/dbTemplate.py
U trunk/dabo/db/dbWeb.py
Log:
Corrected the parameter list for getTables().
Diff:
Modified: trunk/dabo/db/dbTemplate.py
===================================================================
--- trunk/dabo/db/dbTemplate.py 2009-01-11 16:25:02 UTC (rev 4919)
+++ trunk/dabo/db/dbTemplate.py 2009-01-11 20:28:52 UTC (rev 4920)
@@ -76,12 +76,11 @@
return "%s%s%s" % (sqt, val, sqt)
- def getTables(self, includeSystemTables=False):
+ def getTables(self, cursor, includeSystemTables=False):
#### TODO: Verify that this works with NEWDATABASE, including
#### the option for including/excluding system tables.
- tempCursor = self._connection.cursor()
- tempCursor.execute("show tables")
- rs = tempCursor.fetchall()
+ cursor.execute("show tables")
+ rs = cursor.fetchall()
tables = []
for record in rs:
tables.append(record[0])
Modified: trunk/dabo/db/dbWeb.py
===================================================================
--- trunk/dabo/db/dbWeb.py 2009-01-11 16:25:02 UTC (rev 4919)
+++ trunk/dabo/db/dbWeb.py 2009-01-11 20:28:52 UTC (rev 4920)
@@ -22,7 +22,7 @@
return self._connection
- def getTables(self, includeSystemTables=False):
+ def getTables(self, cursor, includeSystemTables=False):
return
self._remoteConnector.getTables(includeSystemTables=includeSystemTables)
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]