On Aug 21, 2009, at 2:21 AM, alex wrote:

>
> Hi, all!
>
> I use just one session in my project. Objects (loaded from the
> database) can changed by user while the program in progress. But only
> some of them should be saved. Usually I use session.flush
> (selected_objects), but now this opportunity is deprecated :(
>
> Please help me to find a solution of my problem.
>
> Thanks in advance.

don't add() objects to the session which are not part of the  
database's state.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to