3 messages in com.googlegroups.sqlalchemy[sqlalchemy] Re: using persisted obje...
FromSent OnAttachments
sniffer25 Mar 2008 22:52 
Michael Bayer26 Mar 2008 08:04 
sniffer26 Mar 2008 08:22 
Subject:[sqlalchemy] Re: using persisted objects in a new session
From:Michael Bayer (mike@zzzcomputing.com)
Date:03/26/2008 08:04:34 AM
List:com.googlegroups.sqlalchemy

On Mar 26, 2008, at 1:52 AM, sniffer wrote:

hi all, I am a newbie with sqlalchemy so bear with me,this is what i am trying to do

my app has a client and server part on the client i am retreiving data using sqlalchemy and transfering the query objects on to the server this goes fine but when i try to open a new session on the server and try to save the object transfered from the client after making certain changes to it nothing happens.

what could i be doing wrong.

what sort of client/server transfer are we talking about ? are you serializing over a socket connection ? session.merge() is typically a good choice for bringing pickled objects back into a Session if that's the case since it will reconcile current database state against what you send it.