I'm new to suds, and to pickle.. but I'm having a problem that I'm not sure how to resolve...
I've called my webservice, and received some results. All of that worked swimmingly. When I try to pickle the results to a file, though.. I fail on the suds.sax.text.Text class with the following error:
TypeError: a class that defines __slots__ without defining __getstate__ cannot be pickled
I noticed that the Text class has a special Pickler class in it. Is there a nice way to hook that up to my pickling operation? I couldn't find any docs suggesting how to go about doing that.
Thanks in advance for the help,
Phill
Hey Phill,
You're in luck.
The focus of 0.3.9 has been to improve pickling (mostly to improve caching). I just committed and released: 0.3.9 (beta) build: R644-20100126 which should fix you up ;) Also, this version not only caches downloaded XML documents as pickled DOM objects but caches the entire WSDL (pickled Definitions object).
Regards,
Jeff
On 01/26/2010 04:05 PM, Phill Tornroth wrote:
I'm new to suds, and to pickle.. but I'm having a problem that I'm not sure how to resolve...
I've called my webservice, and received some results. All of that worked swimmingly. When I try to pickle the results to a file, though.. I fail on the suds.sax.text.Text class with the following error:
TypeError: a class that defines __slots__ without defining __getstate__ cannot be pickled
I noticed that the Text class has a special Pickler class in it. Is there a nice way to hook that up to my pickling operation? I couldn't find any docs suggesting how to go about doing that.
Thanks in advance for the help,
Phill _______________________________________________ suds mailing list suds@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/suds