Matt Richardson wrote:
> Sorry for what is probably a painfully obvious question, but I can't
> figure out why this:
>
> def results():
> row = AttendanceRecord.select()
> for i in row:
> print i
>
> produces this:
>
> <AttendanceRecord 1L sid='831649232' timeIn='datetime.datetime...)'>
> <AttendanceRecord 2L sid='831649232' timeIn='datetime.datetime...)'>
>
> Specifically, why is each row truncated? I've only been at sqlobject
> for a couple of days and I like it a lot more than mysqldb, but this
> is driving me a little nutty.
>
It just shows summary data. If you want to see everything, you can do
something like:
def results():
row = AttendanceRecord.select()
for i in row:
print "%d %s %s" % (i.id, i.sid, i.timeIn)
There may be a way to make it print everything as well, but I don't know
that.
Bill
-------------------------------------------------------------------------
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