7 messages in com.googlegroups.sqlalchemy[sqlalchemy] Re: New records won't be...
FromSent OnAttachments
Felix Schwarz04 Feb 2008 03:08 
Gaetan de Menten04 Feb 2008 03:30 
Felix Schwarz04 Feb 2008 05:01 
Michael Bayer04 Feb 2008 10:03 
jason kirtland04 Feb 2008 10:25 
Felix Schwarz04 Feb 2008 13:01 
Michael Bayer04 Feb 2008 13:03 
Subject:[sqlalchemy] Re: New records won't be committed (ORM, Elixir)
From:Michael Bayer (mike@zzzcomputing.com)
Date:02/04/2008 10:03:46 AM
List:com.googlegroups.sqlalchemy

On Feb 4, 2008, at 8:01 AM, Felix Schwarz wrote:

Thank you very much for your reply - lightning fast as always :-)

Gaetan de Menten schrieb:

Other than that, maybe you are (or Turbogears is) starting a transaction somewhere (with session.begin()) without ever commiting it?

Thanks for your hint. Indeed I used session.begin() after my session.flush() and obviously did not cause a COMMIT (why?) although there were objects to save.

session.begin() needs to be paired with session.commit(). The commit() will do a flush() automatically.