Hi,
I am new to wxPython and I am trying to access the database. What I am doing
is getting the columns names from a table of a database and attaching it to
the tree ..
Then using
self.mDatabaseTree.SortChildren(self.mTreeID[server][2])
to expand and sort the column names ..
Now this thing is just working fine on Linux Red Hat but throwing C++
Assertion problem "Assertion Failed" in C:\projects\wx\src\msw\treectrl.cpp
I tried everything but couldn't figure out the problem ..
I am using python 2.2.3 and windows XP .
Your help will be appreciated.
Thanks,
Aashish
Research Assistant
aashish@iastate.edu
def getVariableList(self, server):
"""
Gets the variables for the specified, host, db, user, pass, table
tuple
"""
print "[DBG] Processing: " + str(server)
if not self.mConnectionMap.has_key(server):
self.mConnectionMap[server] = MySqlcDatabase(str(server[0]),
str(server[1]), str(server[2]), str(server[3]))
print "[DBG] Connection Map"
print self.mConnectionMap
variables = self.mConnectionMap[server].getColumns(str(server[4]))
#print '[DBG] Variables in ' + server[4] + ' ' + str(variables)
for x in variables:
self.mDatabaseTree.AppendItem(self.mTreeID[server][2], x)
self.mVariableMap[(server[0], server[3], server[4])][x] = ('',
None, None)
self.mDatabaseTree.SortChildren(self.mTreeID[server][2])
#if not 'ID' in self.mVariableMap[server]:
# self.mVariableMap[server].append('ID')