Hi All,

While trying to refactor my app, I found out that there are more than 
one type of resultlists returned with and within the Results of a select.


I use Boa constructor debug mode.

When I do:

Db> blist=Family.select()

Db> type(blist)

<class 'sqlobject.sresults.SelectResults'>

Db> type(blist)==sqlobject.sresults.SelectResults

True


But...when I continue.

Db> blist[0]

<Family 1 familyname="'some familyname...'">

Db> type(blist[0])

<class 'AddressBookDB.Family'>

Db> type(blist[0])==AddressBookDB.Family

NameError: name 'AddressBookDB' is not defined


Do I do something wrong or do I not understand something?
Who can help me out.


With best regards,


Frans.



-------------------------------------------------------------------------
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
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to