I just inherited a Pyramid application that has several nested classes
in the session with dozens of attributes, so it would be quite a job
to convert them to JSONable dicts. I'm advising the developer how to
prepare it for beta and future versions of Pyramid. We're currently
using 'pyramid_beaker' with file-based sessions but I'm planning to
switch to 'pyramid_redis_sessions'. What will I need to do to make it
keep working in Pyramid 2 and 1.10? Will the PickleSerializer class be
deleted from the code, or just made non-default? I don't need a
dual-mode serializer as in the docs, because when/if we switch to JSON
we'll delete all the existing sessions. So I'd just need to add code
to explicitly use the Pickle serializer?
The manual says:
"In Pyramid 2.0 the pyramid.interfaces.ISession interface will be
changing to require that session implementations only need to support
JSON-serializable data types."
This is consistent with what Michael said above. But the changelog
entry for 1.10a1 says:
"The pyramid.intefaces.ISession interface will move to require
JSON-serializable objects in Pyramid 2.0. "
suggesting it will force JSON or bust.