Re: [PyQt] QSqlRelationTableModel question

2008-07-14 Thread Scott Frankel
On Jul 14, 2008, at 8:02 AM, simone wrote: Scott Frankel ha scritto: I've seen the subclassed model's internal select statement, using model.selectStatement(). I'm hoping to not have to re-implement that mess by hand in a hundred custom queries ;) Have you tried, by the setQuery() metho

Re: [PyQt] QSqlRelationTableModel question

2008-07-14 Thread simone
Scott Frankel ha scritto: I've seen the subclassed model's internal select statement, using model.selectStatement(). I'm hoping to not have to re-implement that mess by hand in a hundred custom queries ;) Have you tried, by the setQuery() method, to set up the select statement like what you

[PyQt] QSqlRelationTableModel question

2008-07-14 Thread Scott Frankel
Hello, Is it possible to specify the (Postgre)SQL keyword "ONLY" when subclassing QSqlRelationTableModel? My db schema currently uses a mechanism that requires that my select statements declare "ONLY" in order to return valid records. eg: SELECT * FROM ONLY foo; I've seen the s