buzhug help.

12 views
Skip to first unread message

patx

unread,
Jul 5, 2009, 12:18:44 PM7/5/09
to buz...@googlegroups.com, quentel...@wanadoo.fr
um i am not sure HOW to do this but how would i select a ENTIRE database and the print it? thanks

my code:

    def bookmarksfun(self):
    bookdb = Base('faves').create(('url',str),mode='open')
    bookmarksdb = bookdb.select(url)[0].print

--
patx, python gui

Pierre Quentel

unread,
Jul 6, 2009, 2:43:37 PM7/6/09
to buzhug
Hi,

The best way to do it is to use the Base instance as an iterator :

for record in db:
print record.url

- Pierre
Reply all
Reply to author
Forward
0 new messages