[Grok-dev] Pickling an object stored in the Zodb. How do I skip the __parent__ attribute?

Sebastian Ware sebastian at urbantalk.se
Thu Aug 14 08:23:17 EDT 2008


I am trying to export and import objects from the Zodb using  
cPickle.dumps().

My problem is that the pickler traverses the __parent__ attribute thus  
returning a much larger object graph than I wish to serialize.

Do I have to subclass the pickler or is there som other smart way of  
making it skip the __parent__ attribute?

Mvh Sebastian



More information about the Grok-dev mailing list