[sqlalchemy] session.refresh() bug with adjacency lists?

2009-07-24 Thread David Gardner
I just ran across something I believe maybe a bug in session.refresh() dealing with adjacency lists. The situation is after a session.refresh() on a node (in my case a 'job'), the children and grandchildren have some of their values overridden by the refreshed node. Calling session.expire_all()

[sqlalchemy] session.refresh

2008-03-06 Thread Steve Zatz
This is probably obvious but I was confused by the fact that you can refresh an object through session.refresh(obj) but that doesn't guarantee that the object is in the session and doesn't put it in the session if it is not. Is the accepted way to handle this to just follow the refresh with a ses