[sqlalchemy] Re: How to revert all changes on an object before Session.merge(o, load=False) ?

2011-11-30 Thread Łukasz Czuja
Hi again, Just wanted to sum up. The solution that I was looking for was to operate on a detached state objects, without any transaction present (re-re-read the docs today). Now I just simply do: 1. fetch selected objects from database 2. Session.remove() (one could use expunge_all() instead to h

[sqlalchemy] Re: How to revert all changes on an object before Session.merge(o, load=False) ?

2011-11-29 Thread Łukasz Czuja
On 29 Lis, 20:53, Michael Bayer wrote: > On Nov 29, 2011, at 2:35 PM, Łukasz Czuja wrote: > > > Hello, > > > I'm trying to figure out a way to use Session.merge(o, load=False), on > > an object which is not bound to a session (Session.remove() used after > > the object was modified, but the change