[sqlalchemy] Re: one to many relation, removing and adding list issue

2010-08-26 Thread fma
Any suggestion helping solving this? On 25 août, 13:02, Martin-Leon Francois francois@gmail.com wrote: Hi, I am trying in the same  session to detach an instance from a collection ( one to many) flush and commit everything (all is ok) and then attach the removed instance   again.

Re: [sqlalchemy] Re: one to many relation, removing and adding list issue

2010-08-26 Thread Martin-Leon Francois
hi, The problem seems to be a little bit more general, I have a unique class (doing nothing) mapped to a unique table. After opening a session, I create an instance, add it to the session, flush, commit. Everything is ok. -- a row in the table, instance in the identity_map of the session

[sqlalchemy] Re: one to many relation, removing and adding list issue

2010-08-26 Thread fma
Sorry if you receive this twice, I am not sure if it had been correctly posted. On 26 août, 14:49, Martin-Leon Francois francois@gmail.com wrote: hi, The problem seems to be a little bit more general, I have a unique class (doing nothing) mapped to a unique table. After opening a

Re: [sqlalchemy] Re: one to many relation, removing and adding list issue

2010-08-26 Thread Michael Bayer
On Aug 26, 2010, at 8:49 AM, Martin-Leon Francois wrote: hi, The problem seems to be a little bit more general, I have a unique class (doing nothing) mapped to a unique table. After opening a session, I create an instance, add it to the session, flush, commit. Everything is ok. -- a

Re: [sqlalchemy] Re: one to many relation, removing and adding list issue

2010-08-26 Thread Martin-Leon Francois
ok, many thx fma Le 26 août 2010 à 17:03, Michael Bayer a écrit : On Aug 26, 2010, at 8:49 AM, Martin-Leon Francois wrote: hi, The problem seems to be a little bit more general, I have a unique class (doing nothing) mapped to a unique table. After opening a session, I create an