[sqlalchemy] Re: how to walk through a query result

2009-01-12 Thread Werner F. Bruhin
Michael, Thanks for the quick reply. Michael Bayer wrote: On Jan 11, 2009, at 4:51 PM, Werner F. Bruhin wrote: I can not find the answer looking through the 0.5 doc for my problem. query = session.query(db.SomeClass).filter(something).order_by(anorder) # get the first row row =

[sqlalchemy] Re: how to walk through a query result

2009-01-11 Thread Michael Bayer
On Jan 11, 2009, at 4:51 PM, Werner F. Bruhin wrote: I can not find the answer looking through the 0.5 doc for my problem. query = session.query(db.SomeClass).filter(something).order_by(anorder) # get the first row row = query.first() # display a dialog to the user # one of the