From bea48e2f01070003a795aa12b8d8ba464fe15115 Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Thu, 9 May 2013 16:45:05 -0400 Subject: Implement PEP302 API in PackageOverrides as '__loader__'. Proxy to the '__loader__' set by the importer, if present. Otherwise, raise NotImplementedError. --- CHANGES.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index e6dd9f0cb..2fcd9c62a 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -4,6 +4,11 @@ next release Features -------- +- Make the ``pyramid.config.assets.PackageOverrides`` object implement the + API for ``__loader__`` objects specified in PEP 302. Proxies to the + ``__loader__`` set by the importer, if present; otherwise, raises + ``NotImplementedError``. + - ``ACLAuthorizationPolicy`` supports ``__acl__`` as a callable. This removes the ambiguity between the potential ``AttributeError`` that would be raised on the ``context`` when the property was not defined and the -- cgit v1.2.3 From 45ef9a69e51189051c03b3fdeac4458ee94d7529 Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Tue, 21 May 2013 15:27:02 -0400 Subject: Prevent non-3.2-compatible MarkupSafe 0.16 from breaking us. Apps which actually use Mako templates are still broken. --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index e6dd9f0cb..2c4f4e31c 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -32,6 +32,9 @@ Features Bug Fixes --------- +- ``mako_templating``: added defensive workaround for non-importability + of ``mako`` (due to upstream ``markupsafe`` dropping Python 3.2 support). + - View lookup will now search for valid views based on the inheritance hierarchy of the context. It tries to find views based on the most specific context first, and upon predicate failure, will move up the -- cgit v1.2.3 From 0fdb540f8e432061ec09623f0275a6b6555292ef Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 21 May 2013 18:17:57 -0400 Subject: tortured docs --- CHANGES.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 2c4f4e31c..468fe1ed1 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -32,8 +32,11 @@ Features Bug Fixes --------- -- ``mako_templating``: added defensive workaround for non-importability - of ``mako`` (due to upstream ``markupsafe`` dropping Python 3.2 support). +- ``mako_templating``: added defensive workaround for non-importability of + ``mako`` due to upstream ``markupsafe`` dropping Python 3.2 support. Mako + templating will no longer work under the combination of MarkupSafe 0.17 and + Python 3.2 (although the combination of MarkupSafe 0.17 and Python 3.3 or any + supported Python 2 version will work OK). - View lookup will now search for valid views based on the inheritance hierarchy of the context. It tries to find views based on the most -- cgit v1.2.3 From d4495efddce30cf2eef771ac28e2d90b86985d39 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 21 May 2013 18:30:21 -0400 Subject: this is actually a bugfix --- CHANGES.txt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index ceaeb3519..a471addce 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -4,11 +4,6 @@ next release Features -------- -- Make the ``pyramid.config.assets.PackageOverrides`` object implement the - API for ``__loader__`` objects specified in PEP 302. Proxies to the - ``__loader__`` set by the importer, if present; otherwise, raises - ``NotImplementedError``. - - ``ACLAuthorizationPolicy`` supports ``__acl__`` as a callable. This removes the ambiguity between the potential ``AttributeError`` that would be raised on the ``context`` when the property was not defined and the @@ -37,6 +32,13 @@ Features Bug Fixes --------- +- Make the ``pyramid.config.assets.PackageOverrides`` object implement the API + for ``__loader__`` objects specified in PEP 302. Proxies to the + ``__loader__`` set by the importer, if present; otherwise, raises + ``NotImplementedError``. This makes Pyramid static view overrides work + properly under Python 3.3 (previously they would not). See + https://github.com/Pylons/pyramid/pull/1015 for more information. + - ``mako_templating``: added defensive workaround for non-importability of ``mako`` due to upstream ``markupsafe`` dropping Python 3.2 support. Mako templating will no longer work under the combination of MarkupSafe 0.17 and -- cgit v1.2.3 From fab8454294b6271c727a0251c78b5f55df5788bf Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 5 Jun 2013 06:04:45 -0400 Subject: add changelog note --- CHANGES.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index a471addce..6a26879a3 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -29,6 +29,11 @@ Features ``initialize_myapp_db etc/development.ini a=1 b=2``. See https://github.com/Pylons/pyramid/pull/911 +- The ``request.session.check_csrf_token()`` method and the ``check_csrf`` view + predicate now take into account the value of the HTTP header named + ``X-CSRF-Token`` (as well as the ``csrf_token`` form parameter, which they + always did). The header is tried when the form parameter does not exist. + Bug Fixes --------- -- cgit v1.2.3 From 050b71c19081d95c1fb8ed57a87fab7fa4dd3ab0 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 11 Jun 2013 13:19:16 -0400 Subject: - ``pyramid.testing.DummyResource`` didn't define ``__bool__``, so code under Python 3 would use ``__len__`` to find truthiness; this usually caused an instance of DummyResource to be "falsy" instead of "truthy". See https://github.com/Pylons/pyramid/pull/1032 Closes #1032 --- CHANGES.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 6a26879a3..2c8c6ee46 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -111,6 +111,11 @@ Bug Fixes files have now been removed. See https://github.com/Pylons/pyramid/issues/981 +- ``pyramid.testing.DummyResource`` didn't define ``__bool__``, so code under + Python 3 would use ``__len__`` to find truthiness; this usually caused an + instance of DummyResource to be "falsy" instead of "truthy". See + https://github.com/Pylons/pyramid/pull/1032 + 1.4 (2012-12-18) ================ -- cgit v1.2.3 From f0f92b0d2f09922699e2cf8ab034c3e6517e169d Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Wed, 19 Jun 2013 15:55:51 -0400 Subject: Changelog for PR #1033. --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 2c8c6ee46..082b51c41 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -4,6 +4,9 @@ next release Features -------- +- ``scripts/prequrest.py``: add support for submitting ``PUT`` and ``PATCH`` + requests. See https://github.com/Pylons/pyramid/pull/1033. + - ``ACLAuthorizationPolicy`` supports ``__acl__`` as a callable. This removes the ambiguity between the potential ``AttributeError`` that would be raised on the ``context`` when the property was not defined and the -- cgit v1.2.3 From 9e6c8c66aaec13e5c4868f3101b2459f56c2e0c4 Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Wed, 19 Jun 2013 16:20:46 -0400 Subject: Typo --- CHANGES.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 082b51c41..ba8aae559 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -4,7 +4,7 @@ next release Features -------- -- ``scripts/prequrest.py``: add support for submitting ``PUT`` and ``PATCH`` +- ``scripts/prequest.py``: add support for submitting ``PUT`` and ``PATCH`` requests. See https://github.com/Pylons/pyramid/pull/1033. - ``ACLAuthorizationPolicy`` supports ``__acl__`` as a callable. This -- cgit v1.2.3