From 0436567f2f4bd92e9769890befc77aae54d5ea36 Mon Sep 17 00:00:00 2001 From: Philip Jenvey Date: Tue, 18 Sep 2012 13:54:27 -0700 Subject: mention set_request_property's doc-deprecation up above as well, make add_request_method more prominent --- docs/whatsnew-1.4.rst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'docs') diff --git a/docs/whatsnew-1.4.rst b/docs/whatsnew-1.4.rst index f57178db1..ddc602271 100644 --- a/docs/whatsnew-1.4.rst +++ b/docs/whatsnew-1.4.rst @@ -94,10 +94,10 @@ Minor Feature Additions - :meth:`pyramid.config.Configurator.add_request_method` has been introduced to support extending request objects with arbitrary callables. This method - expands on the previous + expands on the now documentation-deprecated :meth:`pyramid.config.Configurator.set_request_property` by supporting - methods as well as properties. This method causes less code to be executed - at request construction time than + methods as well as properties. This method also causes less code to be + executed at request construction time than :meth:`~pyramid.config.Configurator.set_request_property`. - The static view machinery now raises rather than returns @@ -133,13 +133,13 @@ Minor Feature Additions ``pyramid.util.InstancePropertyMixin`` class such as ``set_property``. - Request properties and methods added via - :meth:`pyramid.config.Configurator.set_request_property` or - :meth:`pyramid.config.Configurator.add_request_method` are now available to + :meth:`pyramid.config.Configurator.add_request_method` or + :meth:`pyramid.config.Configurator.set_request_property` are now available to tweens. - Request properties and methods added via - :meth:`pyramid.config.Configurator.set_request_property` or - :meth:`pyramid.config.Configurator.add_request_method` are now available + :meth:`pyramid.config.Configurator.add_request_method` or + :meth:`pyramid.config.Configurator.set_request_property` are now available in the request object returned from :func:`pyramid.paster.bootstrap`. - ``request.context`` of environment request during -- cgit v1.2.3 From 68c00de2f71f95571c1876d024c9ad5d4dfeec2c Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 19 Sep 2012 03:30:18 -0400 Subject: add check_csrf convenience function --- docs/api/session.rst | 2 ++ docs/whatsnew-1.4.rst | 3 +++ 2 files changed, 5 insertions(+) (limited to 'docs') diff --git a/docs/api/session.rst b/docs/api/session.rst index 44b4bd860..31bc196ad 100644 --- a/docs/api/session.rst +++ b/docs/api/session.rst @@ -11,4 +11,6 @@ .. autofunction:: signed_deserialize + .. autofunction:: check_csrf_token + diff --git a/docs/whatsnew-1.4.rst b/docs/whatsnew-1.4.rst index f57178db1..fc25c415e 100644 --- a/docs/whatsnew-1.4.rst +++ b/docs/whatsnew-1.4.rst @@ -153,6 +153,9 @@ Minor Feature Additions used to generate a configurator in a test, e.g. ``with testing.testConfig(...):``. +- A new :func:`pyramid.session.check_csrf_token` convenience API function was + added. + Backwards Incompatibilities --------------------------- -- cgit v1.2.3