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.

Barry


----- Original Message ----
From: Michael Bayer <[EMAIL PROTECTED]>
To: sqlalchemy@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.



      
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
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