Re: [PyQt] data widget mapper not committing

2008-09-02 Thread Scott Frankel
Thanks for the example! Oddly, lastError() returns "OK!" when my database does not accept the commit. Then if I change the QSqlTableModel from OnManualSubmit to OnFieldChange, lastError returns "ERROR", but the committed data is written back to the db! Weird. I'll dig through the pg li

Re: [PyQt] data widget mapper not committing

2008-09-01 Thread simone
Scott Frankel ha scritto: Am I missing something obvious? I've tried to peek inside using queryModel.lastError(), but it's returning a memory address. Not sure how to get a string from this method. I hope someone on the list can help shed light on this problem. I don't know what's happen

[PyQt] data widget mapper not committing

2008-09-01 Thread Scott Frankel
Hi, I have a form in which I use a QDataWidgetMapper object. When I try to submit values from the form back to the DB, no data gets written. However, mapping field values from my DB to the widgets on the form behaves flawlessly. (See attached source code file. The Postgresql schema fo