Hey folks, this is the first alpha release in the Pyramid 1.9 series.
This release contains some exciting new features with no known backward incompatibilities.
- Added a new execution policy hook that can be used by plugins to control the entire execution cycle of a request. The first implementation is
pyramid_retry which the cookiecutters will be updated to use.
- Added support for alternative file formats other than the PasteDeploy INI format. Pyramid now uses the
plaster package to lookup files based on the config_uri passed on the command-line (e.g. development.ini). To maintain backward compatibility Pyramid 1.9 depends on plaster_pastedeploy to restore integrated PasteDeploy support. This dependency may be removed in the future so applications are encouraged to depend on the specific binding they need.
- CSRF support has been decoupled from sessions and new APIs are available in the ``pyramid.csrf`` module. You can now manage CSRF tokens using a simple cookie if you wish, or any other mechanism by implementing an appropriate storage policy. By default the ``LegacySessionCSRFStoragePolicy`` is used which maintains backward compatibility for applications that are using ``request.session.get_csrf_token()``. Users should update to the new APIs to support alternate storage policies.
- The ``Configurator`` now activates threadlocals during actions and also supports being used as a context manager such that the threadlocals are active during the entire config lifecycle. The threadlocals (``pyramid.threadlocal.get_current_registry()``) are important in some situations like when depending on i18n or asset overrides at config-time.
A "What's New In Pyramid 1.9" document exists at
You will be able to see the 1.8 release documentation
You can install it via PyPI:
pip install pyramid==1.9a1
Enjoy, and please report any issues you find to the issue tracker at
Thanks!
- Pyramid core developers