﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc
247,make template objects pickle-able,wotevah,cmlenz,"Pickle refuses to serialize template objects with the following error:

""a class that defines __slots__ without defining __getstate__ cannot be pickled""

It was referring to QName, but after adding __getstate__() to that it complains about some directives as well.

It would be useful to add the necessary __getstate__/__setstate__ methods to each class that has __slots__, so pickle could work. I have thought about writing a filter to replace the offending classes since I've done something similar for consistent charset handling, but use of __slots__ makes QName and the others difficult to subclass and besides, it doesn't seem like the right thing to do.

I know the loader caches templates. I want to have more flexibility in choosing what kind of cache to use, for example a persistent cache using memcached that can be used across different processes and survive restarts.
",enhancement,new,minor,0.9,General,0.4.4,,pickle,
