Hopefully this is enough code to reveal the problem. When I run the
program, there are no error messages produced, it's just that the values
I enter don't seem to get put into the database, even though the query
seems to be ok.
def OnSaveRecord(se lf, event):
textfield_value s = []
for tab in self.notebook.G etCurrentPage() .GetChildren():
for table in self.get_textfi eld_ids():
table_values = []
for textfield_id in table:
table_values.ap pend(xrc.XRCCTR L(tab,
textfield_id).G etValue())
textfield_value s.append(table_ values)
res_id = self.create_id( textfield_value s[0][0],
textfield_value s[0][2])
for table in textfield_value s:
table.insert(0, res_id)
self.save_to_da tabase(textfiel d_values)
def save_to_databas e(self, data):
# doesn't work?
self.connection .execute("""INS ERT INTO Personal VALUES
(?,?,?,?,?,?,?, ?,?,?)""", tuple(data[0]))
program, there are no error messages produced, it's just that the values
I enter don't seem to get put into the database, even though the query
seems to be ok.
def OnSaveRecord(se lf, event):
textfield_value s = []
for tab in self.notebook.G etCurrentPage() .GetChildren():
for table in self.get_textfi eld_ids():
table_values = []
for textfield_id in table:
table_values.ap pend(xrc.XRCCTR L(tab,
textfield_id).G etValue())
textfield_value s.append(table_ values)
res_id = self.create_id( textfield_value s[0][0],
textfield_value s[0][2])
for table in textfield_value s:
table.insert(0, res_id)
self.save_to_da tabase(textfiel d_values)
def save_to_databas e(self, data):
# doesn't work?
self.connection .execute("""INS ERT INTO Personal VALUES
(?,?,?,?,?,?,?, ?,?,?)""", tuple(data[0]))
Comment