7 Jul
2003
7 Jul
'03
5:59 p.m.
Thomas Güttler wrote at 2003-7-7 17:40 +0200:
I want to pickle parts of my ZODB database and import it on a different system.
Is it possible to use the pickle module?
The first try results in: Error Type: UnpickleableError Error Value: Cannot pickle <extension class Acquisition.ImplicitAcquirerWrapper at 40225280> objects
How can I ignore some parts in pickle.dump()?
You unwrap the object (".aq_base") before dumping. But: you really should use the "export" API. Using "pickle.dump" has a *high* probability to produce garbage (as it does not handle persistent subobjects as they should be handled). Dieter