7 messages in com.googlegroups.sqlalchemy[sqlalchemy] Re: Pickling/unpickling ...
FromSent OnAttachments
Nabla27 Jun 2008 00:24 
Michael Bayer27 Jun 2008 06:56 
Barry Hart27 Jun 2008 09:09 
Petr Dlabal27 Jun 2008 09:23 
Petr Dlabal27 Jun 2008 09:31 
az...@svilendobrev.com27 Jun 2008 09:42 
Michael Bayer27 Jun 2008 10:54 
Subject:[sqlalchemy] Re: Pickling/unpickling mapped class
From:Petr Dlabal (dla@gmail.com)
Date:06/27/2008 09:31:39 AM
List:com.googlegroups.sqlalchemy

Thank you for the tip, I'll try Peter

On Fri, Jun 27, 2008 at 6:09 PM, Barry Hart <barr@yahoo.com> wrote:

I use Gnosis Utils for a similar purpose. The API is similar to pickle, but if you need to control the details of the serialization (which fields get serialized and how), then that is quite different. Gnosis has a concept called "mutators" for this.

----- Original Message ---- From: Michael Bayer <mike@zzzcomputing.com> To: sqla@googlegroups.com Sent: Friday, June 27, 2008 9:56:59 AM Subject: [sqlalchemy] Re: Pickling/unpickling mapped class

On Jun 27, 2008, at 3:25 AM, Nabla wrote:

Is there some easy solution of this problem?

yes, the receiving application needs to have the same mapper() setup as the sender. If you use the "declarative" extension to setup your classes, this task is made easier.

And additional question - is there some "simple" way how to "convert" (marshal, serialize) reflected sqlalchemy class to "human- readable" XML?

we dont have an XML serializer but there might be something on Pypi for that.