[sqlalchemy] Re: Problem with session and instance

2008-01-22 Thread Michael Bayer
One thing I can see is that you're using an older version of SA, since that error message has been changed (either 0.4.0 or an old 0.3 version). It means that you cannot issue save() on an instance that is already persistent, you need to use update() or save_or_update(). Also if youre on

[sqlalchemy] Problem with session and instance

2008-01-22 Thread Alex Turner
I am getting an error when I try to save an object for the second time. The things I don't get is that I believe I closed that session with a session.close() Alex Traceback (innermost last): Module ZPublisher.Publish, line 119, in publish Module ZPublisher.mapply, line 88, in mapply Module