[Vobject] Pickle and vObject

Jeffrey Harris jeffrey at osafoundation.org
Tue Jun 3 17:12:24 CDT 2008


> The problem you're having is with tzical, which provides a Python tzinfo 
> class given a VTIMEZONE.  It uses rrules to represent DST transitions. 
> As long as you don't have any tzical timezones, vobject pickles fine.

Whoops, what I said was accurate but not very helpful :)  PyICU 
timezones do pickle fine, but they don't unpickle fine.  So to make this 
work, you'd need to subclass PyICU and add __getstate__ and __setstate__.

Also, use cPickle, not pickle.

Sincerely,
Jeffrey


More information about the VObject mailing list