On Wed, Jun 20, 2007 at 09:37:08AM -0500, Jim Steil wrote:
> for c in [Category.get(h).contacts for h in [1,3]]:
> print c
.contacts being an SQLRelatedJoin returns a SelectResults object; print
converts it to a string which is the SQL query. To execute the query you
can iterate over the SelectResult or convert it to list:
for c in [Category.get(h).contacts for h in [1,3]]:
for row in c:
print row
or
for c in [Category.get(h).contacts for h in [1,3]]:
print list(c)
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED]
Programmers don't die, they just GOSUB without RETURN.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss