[sqlalchemy] Re: Refresh problem in orm

2008-02-11 Thread maxi
Thanks for your replay, The easiest in this case is to use query.populate_existing(): sess.query(Person).populate_existing().filter_by().all() however, this method is only available in 0.4. How work this ? This method - populate_existing() - re-read from database ? in 0.3, several

[sqlalchemy] Re: Refresh problem in orm

2008-02-11 Thread Michael Bayer
On Feb 11, 2008, at 10:20 AM, maxi wrote: Thanks for your replay, The easiest in this case is to use query.populate_existing(): sess.query(Person).populate_existing().filter_by().all() however, this method is only available in 0.4. How work this ? This method - populate_existing()

[sqlalchemy] Re: Refresh problem in orm

2008-02-11 Thread Michael Bayer
On Feb 11, 2008, at 9:52 AM, maxi wrote: Hi, I've a problem, aparently, with refresh data in a user concurrent system using orm lib. For instance, an user do a query request which return a objects list. people = session.query(Person).filter_by().all() and, I show this in my GUI (a