git8 - updated the 3 ps testdatas and regression test

This commit is contained in:
steffen123
2008-08-04 21:51:32 +01:00
parent d95bc6dff6
commit 7af8bb922a
6 changed files with 32 additions and 15 deletions
+1
View File
@@ -111,6 +111,7 @@ class fpdb:
def dia_database_stats(self, widget, data):
print "todo: implement dia_database_stats"
#string=fpdb_db.getDbStats(db, cursor)
#end def dia_database_stats
def dia_delete_db_parts(self, widget, data):
+1 -2
View File
@@ -23,7 +23,6 @@ class fpdb_db:
"""Simple constructor, doesnt really do anything"""
self.db=None
self.cursor=None
self.MYSQL=1
self.MYSQL_INNODB=2
self.PGSQL=3
#end def __init__
@@ -36,7 +35,7 @@ class fpdb_db:
self.user=user
self.password=password
#print "fpdb_db.connect, password:",password,"/end"
if backend==self.MYSQL or backend==self.MYSQL_INNODB:
if backend==self.MYSQL_INNODB:
import MySQLdb
print "fpdb_db.connect, host:", host, " user:", user, " passwd:", password, " db:", database
self.db=MySQLdb.connect(host = host, user = user, passwd = password, db = database)