I\'m new to Python and Python\'s MySQL adapter. I\'m not sure if I\'m missing something obvious here:
db = MySQLdb.connect(# db details omitted) cursor = se
To your code above, just add a call to self.db.commit().
self.db.commit()
The feature is far from an annoyance:
It saves you from data corruption issues when there are errors in your queries.