From: Ian B. <ia...@co...> - 2005-05-13 15:14:57
|
Andrew Bennetts wrote: >>>>from sqlobject.converters import sqlrepr >>>>sqlrepr(q, 'postgres') > > "(a.name LIKE 'hello%')" Better still: MyClass.sqlrepr(...) # or anInstance.sqlrepr(...) Which will use the database based on the connection for that class or instance. -- Ian Bicking / ia...@co... / http://blog.ianbicking.org |