From e6f45b05eccc86f0f3a390748df26e34b8fe06c6 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 23 Dec 2010 18:09:03 -0500 Subject: - The name ``registry`` was not available in the ``paster pshell`` environment under IPython. --- CHANGES.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 8532ebec8..eef001f73 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,6 +1,12 @@ Next release ============ +Bug Fixes +--------- + +- The name ``registry`` was not available in the ``paster pshell`` + environment under IPython. + Features -------- -- cgit v1.2.3 From b33dcac47dc0e759cd77a1548d8b38663a977df0 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 24 Dec 2010 16:22:55 -0500 Subject: - Fix API documentation rendering for ``pyramid.view.static`` --- CHANGES.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index eef001f73..6932a0c25 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -59,6 +59,8 @@ Documentation - Changed the "ZODB + Traversal Wiki Tutorial" based on changes to ``pyramid_zodb`` Paster template. +- Fix API documentation rendering for ``pyramid.view.static`` + 1.0a7 (2010-12-20) ================== -- cgit v1.2.3 From 10fd8fe6bc26a7241542353032540cd4415ee9cc Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 24 Dec 2010 17:09:32 -0500 Subject: - Added "Advanced Configuration" narrative chapter which documents how to deal with configuration conflicts, two-phase configuration, ``include`` and ``commit``. --- CHANGES.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 6932a0c25..e28ac9792 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -59,6 +59,10 @@ Documentation - Changed the "ZODB + Traversal Wiki Tutorial" based on changes to ``pyramid_zodb`` Paster template. +- Added "Advanced Configuration" narrative chapter which documents how to + deal with configuration conflicts, two-phase configuration, ``include`` and + ``commit``. + - Fix API documentation rendering for ``pyramid.view.static`` 1.0a7 (2010-12-20) -- cgit v1.2.3 From 22533dbdc0f362eb680f1053bc707e9b00e9f717 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 24 Dec 2010 21:13:07 -0500 Subject: note timtowti --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index e28ac9792..cb32825d5 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -65,6 +65,9 @@ Documentation - Fix API documentation rendering for ``pyramid.view.static`` +- Add "Pyramid Provides More Than One Way to Do It" to Design Defense + documentation. + 1.0a7 (2010-12-20) ================== -- cgit v1.2.3 From 56db9ebbb2443f213cc38911c83de24a5abbb111 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 24 Dec 2010 22:26:16 -0500 Subject: - Changed "Static Assets" narrative chapter: clarify that ``name`` represents a prefix unless it's a URL, added an example of a root-relative static view fallback for URL dispatch, added an example of creating a simple view that returns the body of a file. --- CHANGES.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index cb32825d5..db7cb991a 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -68,6 +68,11 @@ Documentation - Add "Pyramid Provides More Than One Way to Do It" to Design Defense documentation. +- Changed "Static Assets" narrative chapter: clarify that ``name`` represents + a prefix unless it's a URL, added an example of a root-relative static view + fallback for URL dispatch, added an example of creating a simple view that + returns the body of a file. + 1.0a7 (2010-12-20) ================== -- cgit v1.2.3 From f5bafd1da8da405936bae032d20dba545922860e Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 25 Dec 2010 02:12:54 -0500 Subject: - Prevent misunderstanding of how the ``view`` and ``view_permission`` arguments to add_route work by raising an exception during configuration if view-related arguments exist but no ``view`` argument is passed. --- CHANGES.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index db7cb991a..b544c6b49 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -21,6 +21,10 @@ Features - Added CSRF token generation, as described in the narrative chapter entitled "Preventing Cross-Site Request Forgery Attacks". +- Prevent misunderstanding of how the ``view`` and ``view_permission`` + arguments to add_route work by raising an exception during configuration if + view-related arguments exist but no ``view`` argument is passed. + Paster Templates ---------------- -- cgit v1.2.3 From e1a7e0679759da628676f3c73c34875e9b2b6a43 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 26 Dec 2010 01:13:26 -0500 Subject: - Move ZCML usage in Hooks chapter to Declarative Configuration chapter. --- CHANGES.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index b544c6b49..127ea810e 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -77,6 +77,8 @@ Documentation fallback for URL dispatch, added an example of creating a simple view that returns the body of a file. +- Move ZCML usage in Hooks chapter to Declarative Configuration chapter. + 1.0a7 (2010-12-20) ================== -- cgit v1.2.3 From 88b9ee766bf53ae1c46b8a1889674fea08053622 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 26 Dec 2010 15:57:28 -0500 Subject: - Merge "Static Assets" chapter into the "Assets" chapter. --- CHANGES.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 127ea810e..e58a1dc76 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -79,6 +79,8 @@ Documentation - Move ZCML usage in Hooks chapter to Declarative Configuration chapter. +- Merge "Static Assets" chapter into the "Assets" chapter. + 1.0a7 (2010-12-20) ================== -- cgit v1.2.3 From 90a327b2cd9b9e6b27688dadcdf8125f091f242d Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 27 Dec 2010 16:25:15 -0500 Subject: - Add ``paster proute`` command which displays a summary of the routing table. See the narrative documentation section within the "URL Dispatch" chapter entitled "Displaying All Application Routes". - Added narrative documentation section within the "URL Dispatch" chapter entitled "Displaying All Application Routes" (for ``paster proutes`` command). --- CHANGES.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index e58a1dc76..cba3a9800 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -25,6 +25,10 @@ Features arguments to add_route work by raising an exception during configuration if view-related arguments exist but no ``view`` argument is passed. +- Add ``paster proute`` command which displays a summary of the routing + table. See the narrative documentation section within the "URL Dispatch" + chapter entitled "Displaying All Application Routes". + Paster Templates ---------------- @@ -81,6 +85,10 @@ Documentation - Merge "Static Assets" chapter into the "Assets" chapter. +- Added narrative documentation section within the "URL Dispatch" chapter + entitled "Displaying All Application Routes" (for ``paster proutes`` + command). + 1.0a7 (2010-12-20) ================== -- cgit v1.2.3 From 6362949e3cc96509cf020d5612998d61050a13fb Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 27 Dec 2010 17:25:18 -0500 Subject: Prep for 1.0a8. --- CHANGES.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index cba3a9800..ebf3bf4e2 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,5 +1,5 @@ -Next release -============ +1.0a8 (2010-12-27) +================== Bug Fixes --------- -- cgit v1.2.3 From 096c4b3709253b642ddb985a92331141a8aba381 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 28 Dec 2010 14:29:11 -0500 Subject: back to development --- CHANGES.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index ebf3bf4e2..af78b714d 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,8 @@ +Next release +============ + +- ... + 1.0a8 (2010-12-27) ================== -- cgit v1.2.3 From afbc5d57ddd848b7f2e8c8190afc2109c7563496 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 28 Dec 2010 14:30:54 -0500 Subject: - The ``proutes`` command tried too hard to resolve the view for printing, resulting in exceptions when an exceptional root factory was encountered. Instead of trying to resolve the view, if it cannot, it will now just print ````. --- CHANGES.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index af78b714d..643e0ed7b 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,7 +1,13 @@ Next release ============ -- ... +Bug Fixes +--------- + +- The ``proutes`` command tried too hard to resolve the view for printing, + resulting in exceptions when an exceptional root factory was encountered. + Instead of trying to resolve the view, if it cannot, it will now just print + ````. 1.0a8 (2010-12-27) ================== -- cgit v1.2.3 From 17c4de891ad41c03c6e5e007f8100f02033b4555 Mon Sep 17 00:00:00 2001 From: Wichert Akkerman Date: Tue, 28 Dec 2010 21:07:19 +0100 Subject: When using the auth_tkt authentication plugin accept a ``tokens`` parameter in emember. --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index ebf3bf4e2..2264f50e2 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -10,6 +10,9 @@ Bug Fixes Features -------- +- When using the auth_tkt authentication plugin accept a ``tokens`` parameter + in :py:func:`pyramid.security.remember`. + - If a resource implements a ``__resource_url__`` method, it will be called as the result of invoking the ``pyramid.url.resource_url`` function to generate a URL, overriding the default logic. See the new "Generating The -- cgit v1.2.3 From bae647592ee4913ed7e52409c89815c3ebb37ef7 Mon Sep 17 00:00:00 2001 From: Rob Miller Date: Tue, 28 Dec 2010 21:53:50 -0800 Subject: Recorded description of last change and added self to contributors list. --- CHANGES.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index ebf3bf4e2..01f4adf5b 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,12 @@ +1.0a9 (unreleased) + +Features +-------- + +- config.add_view now accepts a 'decorator' keyword argument, a + callable which will decorate the view callable before it is added to + the registry + 1.0a8 (2010-12-27) ================== -- cgit v1.2.3 From 744d76312799f2537a200e4972f309c7670a4cef Mon Sep 17 00:00:00 2001 From: Rob Miller Date: Tue, 28 Dec 2010 22:18:34 -0800 Subject: record handler _action_decorator classmethod support --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 01f4adf5b..c86594933 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -7,6 +7,9 @@ Features callable which will decorate the view callable before it is added to the registry +- If a handler class provides an _action_decorator classmethod, use that + as the decorator for each view registration for that handler. + 1.0a8 (2010-12-27) ================== -- cgit v1.2.3 From 7e9d3c17bc2fbd4841dbf58509ddd75028971dd9 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 29 Dec 2010 02:22:50 -0500 Subject: - The (weak) "Converting a CMF Application to Pyramid" tutorial has been removed from the tutorials section. It was moved to the ``pyramid_tutorials`` Github repository. --- CHANGES.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 643e0ed7b..e7ecad31a 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -9,6 +9,13 @@ Bug Fixes Instead of trying to resolve the view, if it cannot, it will now just print ````. +Documentation +------------- + +- The (weak) "Converting a CMF Application to Pyramid" tutorial has been + removed from the tutorials section. It was moved to the + ``pyramid_tutorials`` Github repository. + 1.0a8 (2010-12-27) ================== -- cgit v1.2.3 From ac718c77c3d2b90c87f4f0b369eedff5884a2326 Mon Sep 17 00:00:00 2001 From: Joachim Krebs Date: Wed, 29 Dec 2010 20:57:00 +0000 Subject: Removed self arguments from new ISession method signatures. --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index e7ecad31a..71c55fd1f 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -9,6 +9,9 @@ Bug Fixes Instead of trying to resolve the view, if it cannot, it will now just print ````. +- The `self` argument was included in new methods of the ISession interface + signature. + Documentation ------------- -- cgit v1.2.3 From 95c9f6f331bd3294699969ae399045891c0dc6ad Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 30 Dec 2010 02:07:36 -0500 Subject: - The "view derivation" code is now factored into a set of classes rather than a large number of standalone functions (a side effect of the ``view_mapper`` refactoring). - The ``pyramid.renderer.RendererHelper`` class has grown a ``render_view`` method, which is used by the default view mapper (a side effect of the ``view_mapper`` refactoring). - The object passed as ``renderer`` to the "view deriver" is now an instance of ``pyramid.renderers.RendererHelper`` rather than a dictionary (a side effect of ``view_mapper`` refactoring). --- CHANGES.txt | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index fabb882f7..018de8cf7 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -13,12 +13,19 @@ Bug Fixes Features -------- -- config.add_view now accepts a 'decorator' keyword argument, a - callable which will decorate the view callable before it is added to - the registry +- ``config.add_view`` now accepts a ``decorator`` keyword argument, a callable + which will decorate the view callable before it is added to the registry. -- If a handler class provides an _action_decorator classmethod, use that - as the decorator for each view registration for that handler. +- ``config.add_view`` now accepts a ``view_mapper`` keyword argument, which + should be a class which implements the new + ``pyramid.interfaces.IViewMapperFactory`` interface. Use of an alternate + view mapper allows objects that are meant to be used as view callables to + have an arbitrary argument list and an arbitrary result. This feature will + be used by Pyramid extension developers, not by "civilians". + +- If a handler class provides an __action_decorator__ attribute (usually a + classmethod or staticmethod), use that as the decorator for each view + registration for that handler. Documentation ------------- @@ -27,6 +34,21 @@ Documentation removed from the tutorials section. It was moved to the ``pyramid_tutorials`` Github repository. +Internals +--------- + +- The "view derivation" code is now factored into a set of classes rather + than a large number of standalone functions (a side effect of the + ``view_mapper`` refactoring). + +- The ``pyramid.renderer.RendererHelper`` class has grown a ``render_view`` + method, which is used by the default view mapper (a side effect of the + ``view_mapper`` refactoring). + +- The object passed as ``renderer`` to the "view deriver" is now an instance + of ``pyramid.renderers.RendererHelper`` rather than a dictionary (a side + effect of ``view_mapper`` refactoring). + 1.0a8 (2010-12-27) ================== -- cgit v1.2.3 From fcff8cda8f7c60f181e902ca5a349eb8b5655205 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 30 Dec 2010 02:09:23 -0500 Subject: stray header line --- CHANGES.txt | 1 - 1 file changed, 1 deletion(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 018de8cf7..743f20e3b 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,4 +1,3 @@ -======= Next release ============ -- cgit v1.2.3 From 13bfb5ae063fde4bb45f73340ca97d37279e4b34 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 31 Dec 2010 02:56:47 -0500 Subject: note previous change --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 743f20e3b..04f5a7d05 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -48,6 +48,9 @@ Internals of ``pyramid.renderers.RendererHelper`` rather than a dictionary (a side effect of ``view_mapper`` refactoring). +- The class used as the "page template" in ``pyramid.chameleon_text`` was + removed, in preference to using a Chameleon-inbuilt version. + 1.0a8 (2010-12-27) ================== -- cgit v1.2.3 From 95c95bf924a8c08e0a5b686d7a5d12fa4e49d87e Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 31 Dec 2010 16:47:13 -0500 Subject: - A view callable wrapper registered in the registry now contains an ``__original_view__`` attribute which references the original view callable (or class). --- CHANGES.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 04f5a7d05..826be0be6 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -51,6 +51,10 @@ Internals - The class used as the "page template" in ``pyramid.chameleon_text`` was removed, in preference to using a Chameleon-inbuilt version. +- A view callable wrapper registered in the registry now contains an + ``__original_view__`` attribute which references the original view callable + (or class). + 1.0a8 (2010-12-27) ================== -- cgit v1.2.3 From 2526d8bdec3c2d84f3ab8ec1983150927fce7eae Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 31 Dec 2010 17:15:43 -0500 Subject: - The ``pyramid.interfaces.IAuthenticationPolicy`` interface now specifies an ``unauthenticated_userid`` method. This method supports an important optimization required by people who are using persistent storages which do not support object caching and whom want to create a "user object" as a request attribute. - A new API has been added to the ``pyramid.security`` module named ``unauthenticated_userid``. This API function calls the ``unauthenticated_userid`` method of the effective security policy. - An ``unauthenticated_userid`` method has been added to the dummy authentication policy returned by ``pyramid.config.Configurator.testing_securitypolicy``. It returns the same thing as that the dummy authentication policy's ``authenticated_userid`` method. - Since the ``pyramid.interfaces.IAuthenticationPolicy`` interface now specifies that a policy implementation must implement an ``unauthenticated_userid`` method, all third-party custom authentication policies now must implement this method. It, however, will only be called when the global function named ``pyramid.security.unauthenticated_userid`` is invoked, so if you're not invoking that, you will not notice any issues. - The (non-API) method of all internal authentication policy implementations previously named ``_get_userid`` is now named ``unauthenticated_userid``, promoted to an API method. If you were overriding this method, you'll now need to override it as ``unauthenticated_userid`` instead. --- CHANGES.txt | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 826be0be6..19732a623 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -26,6 +26,32 @@ Features classmethod or staticmethod), use that as the decorator for each view registration for that handler. +- The ``pyramid.interfaces.IAuthenticationPolicy`` interface now specifies an + ``unauthenticated_userid`` method. This method supports an important + optimization required by people who are using persistent storages which do + not support object caching and whom want to create a "user object" as a + request attribute. + +- A new API has been added to the ``pyramid.security`` module named + ``unauthenticated_userid``. This API function calls the + ``unauthenticated_userid`` method of the effective security policy. + +- An ``unauthenticated_userid`` method has been added to the dummy + authentication policy returned by + ``pyramid.config.Configurator.testing_securitypolicy``. It returns the + same thing as that the dummy authentication policy's + ``authenticated_userid`` method. + +Backwards Incompatibilities +--------------------------- + +- Since the ``pyramid.interfaces.IAuthenticationPolicy`` interface now + specifies that a policy implementation must implement an + ``unauthenticated_userid`` method, all third-party custom authentication + policies now must implement this method. It, however, will only be called + when the global function named ``pyramid.security.unauthenticated_userid`` + is invoked, so if you're not invoking that, you will not notice any issues. + Documentation ------------- @@ -55,6 +81,11 @@ Internals ``__original_view__`` attribute which references the original view callable (or class). +- The (non-API) method of all internal authentication policy implementations + previously named ``_get_userid`` is now named ``unauthenticated_userid``, + promoted to an API method. If you were overriding this method, you'll now + need to override it as ``unauthenticated_userid`` instead. + 1.0a8 (2010-12-27) ================== -- cgit v1.2.3 From 44166612ba6fcf42f20b1812c5fa79b8504aa3c4 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 1 Jan 2011 17:05:46 -0500 Subject: - The class ``pyramid.authentication.AuthTktCookieHelper`` is now an API. This class can be used by third-party authentication policy developers to help in the mechanics of authentication cookie-setting. --- CHANGES.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 19732a623..853cb1360 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -42,6 +42,10 @@ Features same thing as that the dummy authentication policy's ``authenticated_userid`` method. +- The class ``pyramid.authentication.AuthTktCookieHelper`` is now an API. + This class can be used by third-party authentication policy developers to + help in the mechanics of authentication cookie-setting. + Backwards Incompatibilities --------------------------- -- cgit v1.2.3 From 60eccf86ed9073644e525a84f2bed5390651e3a4 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 1 Jan 2011 17:09:56 -0500 Subject: quote literal --- CHANGES.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 853cb1360..6fe68fb48 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -22,8 +22,8 @@ Features have an arbitrary argument list and an arbitrary result. This feature will be used by Pyramid extension developers, not by "civilians". -- If a handler class provides an __action_decorator__ attribute (usually a - classmethod or staticmethod), use that as the decorator for each view +- If a handler class provides an ``__action_decorator__`` attribute (usually + a classmethod or staticmethod), use that as the decorator for each view registration for that handler. - The ``pyramid.interfaces.IAuthenticationPolicy`` interface now specifies an -- cgit v1.2.3 From 80aa770ad2230f01611eb6f49080321faf77d9fe Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 2 Jan 2011 04:08:18 -0500 Subject: - add a ``add_view_mapper`` API to Configurator. This API allows you to add a named implementation of a ``pyramid.interfaces.IViewMapperFactory`` interface. Its name can be passed as a ``view_mapper`` argument to ``config.add_view``. A view mapper allows objects that are meant to be used as view callables to have an arbitrary argument list and an arbitrary result. This feature will be used by Pyramid extension developers, not by "civilians". - New constructor argument to Configurator: ``default_view_mapper``. Useful to create systems that have view callables with alternate default calling conventions. - ``view_mapper`` argument to ``add_view`` should now be a view mapper *name* rather than an implementation. - Add ``view_mapper`` argument to ``view_config`` decorator constructor. - Remove (non-API) function of config.py named _map_view. - Fix docstring for ``decorator`` argument to add_view. - Factor invocation of view mapper into a viewderiver method. - Promote view rendering and decorating into viewderiver, out of view mapper. - Make requestonly into a function rather than a method of the default view mapper. --- CHANGES.txt | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 6fe68fb48..4279f950d 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -15,12 +15,21 @@ Features - ``config.add_view`` now accepts a ``decorator`` keyword argument, a callable which will decorate the view callable before it is added to the registry. +- add a ``add_view_mapper`` API to Configurator. This API allows you to add + a named implementation of a ``pyramid.interfaces.IViewMapperFactory`` + interface. Its name can be passed as a ``view_mapper`` argument to + ``config.add_view``. A view mapper allows objects that are meant to be + used as view callables to have an arbitrary argument list and an arbitrary + result. This feature will be used by Pyramid extension developers, not by + "civilians". + +- New constructor argument to Configurator: ``default_view_mapper``. Useful + to create systems that have view callables with alternate default calling + conventions. + - ``config.add_view`` now accepts a ``view_mapper`` keyword argument, which - should be a class which implements the new - ``pyramid.interfaces.IViewMapperFactory`` interface. Use of an alternate - view mapper allows objects that are meant to be used as view callables to - have an arbitrary argument list and an arbitrary result. This feature will - be used by Pyramid extension developers, not by "civilians". + should either be ``None`` or the name of a view mapper previously + registered via ``add_view_mapper``. - If a handler class provides an ``__action_decorator__`` attribute (usually a classmethod or staticmethod), use that as the decorator for each view @@ -90,6 +99,7 @@ Internals promoted to an API method. If you were overriding this method, you'll now need to override it as ``unauthenticated_userid`` instead. +- Remove (non-API) function of config.py named _map_view. 1.0a8 (2010-12-27) ================== -- cgit v1.2.3 From d95cd9b81d4e536c1e7f6f84457deb2fb34f1ea3 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 2 Jan 2011 19:26:42 -0500 Subject: - Allow static renderer provided during view registration to be overridden at request time via a request attribute named ``override_renderer``, which should be the name of a registered renderer. Useful to provide "omnipresent" RPC for existing views. - Convert ``add_view_mapper`` to ``set_view_mapper``. There will only be a single default view mapper. We no longer register named utilities for view mappers to provide alternates. - Previoulsy the ``view_mapper`` argument was required to be the *name* of an existing registered view mapper. We no longer register named utilities for view mappers, so now if an extension wants to override the view mapper used for a particular view registration, it can use the dotted name to a view mapper class or provide that class as ``view_mapper``. --- CHANGES.txt | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 4279f950d..ec631cc78 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -15,22 +15,6 @@ Features - ``config.add_view`` now accepts a ``decorator`` keyword argument, a callable which will decorate the view callable before it is added to the registry. -- add a ``add_view_mapper`` API to Configurator. This API allows you to add - a named implementation of a ``pyramid.interfaces.IViewMapperFactory`` - interface. Its name can be passed as a ``view_mapper`` argument to - ``config.add_view``. A view mapper allows objects that are meant to be - used as view callables to have an arbitrary argument list and an arbitrary - result. This feature will be used by Pyramid extension developers, not by - "civilians". - -- New constructor argument to Configurator: ``default_view_mapper``. Useful - to create systems that have view callables with alternate default calling - conventions. - -- ``config.add_view`` now accepts a ``view_mapper`` keyword argument, which - should either be ``None`` or the name of a view mapper previously - registered via ``add_view_mapper``. - - If a handler class provides an ``__action_decorator__`` attribute (usually a classmethod or staticmethod), use that as the decorator for each view registration for that handler. @@ -55,6 +39,27 @@ Features This class can be used by third-party authentication policy developers to help in the mechanics of authentication cookie-setting. +- New constructor argument to Configurator: ``default_view_mapper``. Useful + to create systems that have alternate view calling conventions. A view + mapper allows objects that are meant to be used as view callables to have + an arbitrary argument list and an arbitrary result. The object passed as + ``default_view_mapper`` should implement the + ``pyramid.interfaces.IViewMapperFactory`` interface. + +- add a ``set_view_mapper`` API to Configurator. Has + the same result as passing ``default_view_mapper`` to the Configurator + constructor. + +- ``config.add_view`` now accepts a ``view_mapper`` keyword argument, which + should either be ``None``, a string representing a Python dotted name, or + an object which is an ``IViewMapperFactory``. This feature is not useful + for "civilians", only for extension writers. + +- Allow static renderer provided during view registration to be overridden at + request time via a request attribute named ``override_renderer``, which + should be the name of a previously registered renderer. Useful to provide + "omnipresent" RPC using existing rendered views. + Backwards Incompatibilities --------------------------- -- cgit v1.2.3 From a65bec430170f09b851a237ebe80b4ce703c08ef Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 3 Jan 2011 01:28:52 -0500 Subject: gardening --- CHANGES.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 6471dd7a8..8d0e50722 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -80,6 +80,13 @@ Documentation removed from the tutorials section. It was moved to the ``pyramid_tutorials`` Github repository. +- The "Resource Location and View Lookup" chapter has been replaced with a + variant of Rob Miller's "Much Ado About Traversal" (originally published at + http://blog.nonsequitarian.org/2010/much-ado-about-traversal/). + +- Many minor wording tweaks and refactorings (merged Casey Duncan's docs + fork, in which he is working on general editing). + Internals --------- -- cgit v1.2.3 From 5653d13e554433adf34fd81b2c6593a54e7c4ea1 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 3 Jan 2011 03:10:15 -0500 Subject: - Add a new API ``pyramid.url.current_route_url``, which computes a URL based on the "current" route (if any) and its matchdict values. --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 8d0e50722..520a73847 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -15,6 +15,9 @@ Bug Fixes Features -------- +- Add a new API ``pyramid.url.current_route_url``, which computes a URL based + on the "current" route (if any) and its matchdict values. + - ``config.add_view`` now accepts a ``decorator`` keyword argument, a callable which will decorate the view callable before it is added to the registry. -- cgit v1.2.3 From 51b2e8cf88a6451e974103c0c2cb7bba29e58b7f Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 5 Jan 2011 14:38:41 -0500 Subject: - Instances of ``pyramid.testing.DummyRequest`` now have a ``session`` object, which is mostly a dictionary, but also implements the other session API methods for flash and CSRF. --- CHANGES.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 520a73847..e66675e64 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -66,6 +66,10 @@ Features should be the name of a previously registered renderer. Useful to provide "omnipresent" RPC using existing rendered views. +- Instances of ``pyramid.testing.DummyRequest`` now have a ``session`` + object, which is mostly a dictionary, but also implements the other session + API methods for flash and CSRF. + Backwards Incompatibilities --------------------------- -- cgit v1.2.3 From 8673fb4b8bea363bd7fb4ec469492f56e8d14bbb Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 6 Jan 2011 19:37:05 -0500 Subject: - Readd ``pyramid.traversal.model_path_tuple`` as an alias for ``pyramid.traversal.resource_path_tuple`` for backwards compatibility. --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index e66675e64..8dc422abf 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -12,6 +12,9 @@ Bug Fixes - The `self` argument was included in new methods of the ``ISession`` interface signature, causing ``pyramid_beaker`` tests to fail (jkrebs). +- Readd ``pyramid.traversal.model_path_tuple`` as an alias for + ``pyramid.traversal.resource_path_tuple`` for backwards compatibility. + Features -------- -- cgit v1.2.3 From 5e3d64f1bed16e0a9a4a7aee72594b042b5890ea Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 7 Jan 2011 21:34:53 -0500 Subject: - Rename ``view_mapper`` argument to add_view to ``mapper``. --- CHANGES.txt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 8dc422abf..fb1ede786 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -59,10 +59,10 @@ Features the same result as passing ``default_view_mapper`` to the Configurator constructor. -- ``config.add_view`` now accepts a ``view_mapper`` keyword argument, which - should either be ``None``, a string representing a Python dotted name, or - an object which is an ``IViewMapperFactory``. This feature is not useful - for "civilians", only for extension writers. +- ``config.add_view`` now accepts a ``mapper`` keyword argument, which should + either be ``None``, a string representing a Python dotted name, or an + object which is an ``IViewMapperFactory``. This feature is not useful for + "civilians", only for extension writers. - Allow static renderer provided during view registration to be overridden at request time via a request attribute named ``override_renderer``, which @@ -102,15 +102,15 @@ Internals - The "view derivation" code is now factored into a set of classes rather than a large number of standalone functions (a side effect of the - ``view_mapper`` refactoring). + view mapper refactoring). - The ``pyramid.renderer.RendererHelper`` class has grown a ``render_view`` method, which is used by the default view mapper (a side effect of the - ``view_mapper`` refactoring). + view mapper refactoring). - The object passed as ``renderer`` to the "view deriver" is now an instance of ``pyramid.renderers.RendererHelper`` rather than a dictionary (a side - effect of ``view_mapper`` refactoring). + effect of view mapper refactoring). - The class used as the "page template" in ``pyramid.chameleon_text`` was removed, in preference to using a Chameleon-inbuilt version. -- cgit v1.2.3 From 8839b6501090ba1982e4892c914f3a1fd4bfcbce Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 7 Jan 2011 23:48:31 -0500 Subject: add note about view mapper docs --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index fb1ede786..6157e3426 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -97,6 +97,9 @@ Documentation - Many minor wording tweaks and refactorings (merged Casey Duncan's docs fork, in which he is working on general editing). +- Added (weak) description of new view mapper feature to Hooks narrative + chapter. + Internals --------- -- cgit v1.2.3 From 14f863d9b5c323303155c79901f22c5d0e1dbe69 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 8 Jan 2011 00:02:41 -0500 Subject: - ``pyramid.interfaces.ISession.get_csrf_token`` now mandates that an implementation should return a *new* token if one doesn't already exist in the session (previously it would return None). The internal sessioning implementation has been changed. --- CHANGES.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 6157e3426..b7be0aea0 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -83,6 +83,11 @@ Backwards Incompatibilities when the global function named ``pyramid.security.unauthenticated_userid`` is invoked, so if you're not invoking that, you will not notice any issues. +- ``pyramid.interfaces.ISession.get_csrf_token`` now mandates that an + implementation should return a *new* token if one doesn't already exist in + the session (previously it would return None). The internal sessioning + implementation has been changed. + Documentation ------------- -- cgit v1.2.3 From f3f45a64495ad70d9b522585131d84408ef9359c Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 8 Jan 2011 00:39:14 -0500 Subject: garden --- CHANGES.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index b7be0aea0..91f88c1c6 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -105,6 +105,14 @@ Documentation - Added (weak) description of new view mapper feature to Hooks narrative chapter. +- Split views chapter into 2: View Callables and View Configuration. + +- Reorder Renderers and Templates chapters after View Callables but before + View Configuration. + +- Merge Session Objects, Cross-Site Request Forgery, and Flash Messaging + chapter into a single Sessions chapter. + Internals --------- -- cgit v1.2.3 From 56a8d02119953e3414eaa0a91ed89991eb55c9e8 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 8 Jan 2011 00:39:39 -0500 Subject: garden --- CHANGES.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 91f88c1c6..7276e1e47 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -10,7 +10,7 @@ Bug Fixes ````. - The `self` argument was included in new methods of the ``ISession`` interface - signature, causing ``pyramid_beaker`` tests to fail (jkrebs). + signature, causing ``pyramid_beaker`` tests to fail. - Readd ``pyramid.traversal.model_path_tuple`` as an alias for ``pyramid.traversal.resource_path_tuple`` for backwards compatibility. -- cgit v1.2.3 From 5b20add185b1073dc4ce648935798b3e379e23fa Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 8 Jan 2011 00:42:25 -0500 Subject: garden --- CHANGES.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 7276e1e47..221777d02 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -113,6 +113,8 @@ Documentation - Merge Session Objects, Cross-Site Request Forgery, and Flash Messaging chapter into a single Sessions chapter. +- The Wiki and Wiki2 tutorials now have much nicer CSS and graphics. + Internals --------- -- cgit v1.2.3 From a063aff1b0a9fe1f9d8c4a4baeade6453695f171 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 8 Jan 2011 00:46:32 -0500 Subject: prep for 1.0a9 --- CHANGES.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 221777d02..b24b3d779 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,5 +1,5 @@ -Next release -============ +1.0a9 (2011-01-08) +================== Bug Fixes --------- -- cgit v1.2.3 From 45b6363b4562a3bc28dfb7be0cfc79baa0de375f Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 8 Jan 2011 02:44:12 -0500 Subject: back to development --- CHANGES.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index b24b3d779..c06961428 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,8 @@ +Next release +============ + +- ... + 1.0a9 (2011-01-08) ================== -- cgit v1.2.3 From f52d595bd1cef5cb97d440c8ba1b1a9850ec8f4b Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 12 Jan 2011 02:36:10 -0500 Subject: Features -------- - ``pyramid.testing.setUp`` and ``pyramid.testing.tearDown`` have been undeprecated. They are now the canonical setup and teardown APIs for test configuration, replacing "direct" creation of a Configurator. This is a change designed to provide a facade that will protect against any future Configurator deprecations. Paster Templates ---------------- - All paster templates now use ``pyramid.testing.setUp`` and ``pyramid.testing.tearDown`` rather than creating a Configurator "by hand" within their ``tests.py`` module, as per decision in features above. Documentation ------------- - The wiki and wiki2 tutorials now use ``pyramid.testing.setUp`` and ``pyramid.testing.tearDown`` rather than creating a Configurator "by hand", as per decision in features above. - The "Testing" narrative chapter now explains ``pyramid.testing.setUp`` and ``pyramid.testing.tearDown`` instead of Configurator creation and ``Configurator.begin()`` and ``Configurator.end()``. --- CHANGES.txt | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index c06961428..48d01c28b 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,7 +1,32 @@ Next release ============ -- ... +Features +-------- + +- ``pyramid.testing.setUp`` and ``pyramid.testing.tearDown`` have been + undeprecated. They are now the canonical setup and teardown APIs for test + configuration, replacing "direct" creation of a Configurator. This is a + change designed to provide a facade that will protect against any future + Configurator deprecations. + +Paster Templates +---------------- + +- All paster templates now use ``pyramid.testing.setUp`` and + ``pyramid.testing.tearDown`` rather than creating a Configurator "by hand" + within their ``tests.py`` module, as per decision in features above. + +Documentation +------------- + +- The wiki and wiki2 tutorials now use ``pyramid.testing.setUp`` and + ``pyramid.testing.tearDown`` rather than creating a Configurator "by hand", + as per decision in features above. + +- The "Testing" narrative chapter now explains ``pyramid.testing.setUp`` and + ``pyramid.testing.tearDown`` instead of Configurator creation and + ``Configurator.begin()`` and ``Configurator.end()``. 1.0a9 (2011-01-08) ================== -- cgit v1.2.3 From 6a790b32db3ff52e568222fd2cbf1437dcfa09b6 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 12 Jan 2011 02:55:31 -0500 Subject: - Document the ``request.override_renderer`` attribute within the narrative "Renderers" chapter in a section named "Overriding A Renderer at Runtime". --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 48d01c28b..b17dfe88b 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -28,6 +28,9 @@ Documentation ``pyramid.testing.tearDown`` instead of Configurator creation and ``Configurator.begin()`` and ``Configurator.end()``. +- Document the ``request.override_renderer`` attribute within the narrative + "Renderers" chapter in a section named "Overriding A Renderer at Runtime". + 1.0a9 (2011-01-08) ================== -- cgit v1.2.3 From 2061883531b7f5d11e606c7bdab850e328cb5e38 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 12 Jan 2011 03:38:16 -0500 Subject: - Deprecation warnings related to import of the following API functions were added: ``pyramid.traversal.find_model``, ``pyramid.traversal.model_path``, ``pyramid.traversal.model_path_tuple``, ``pyramid.url.model_url``. The instructions emitted by the deprecation warnings instruct the developer to change these method spellings to their ``resource`` equivalents. This is a consequence of the mass concept rename of "model" to "resource" performed in 1.0a7. --- CHANGES.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index b17dfe88b..73f0b3d4b 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -31,6 +31,17 @@ Documentation - Document the ``request.override_renderer`` attribute within the narrative "Renderers" chapter in a section named "Overriding A Renderer at Runtime". +Deprecations +------------ + +- Deprecation warnings related to import of the following API functions were + added: ``pyramid.traversal.find_model``, ``pyramid.traversal.model_path``, + ``pyramid.traversal.model_path_tuple``, ``pyramid.url.model_url``. The + instructions emitted by the deprecation warnings instruct the developer to + change these method spellings to their ``resource`` equivalents. This is a + consequence of the mass concept rename of "model" to "resource" performed + in 1.0a7. + 1.0a9 (2011-01-08) ================== -- cgit v1.2.3 From f2681ae753b9cc94f88b4cf47fa44714ff20216a Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 14 Jan 2011 16:03:35 -0500 Subject: - Add ``charset`` attribute to ``pyramid.testing.DummyRequest`` (unconditionally ``UTF-8``). --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 73f0b3d4b..d8853593b 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -10,6 +10,9 @@ Features change designed to provide a facade that will protect against any future Configurator deprecations. +- Add ``charset`` attribute to ``pyramid.testing.DummyRequest`` + (unconditionally ``UTF-8``). + Paster Templates ---------------- -- cgit v1.2.3 From 49315b643983789e668626474c22beec3117457e Mon Sep 17 00:00:00 2001 From: Ben Bangert Date: Sat, 15 Jan 2011 11:37:10 -0800 Subject: - URL Dispatch properly handles a '.*' or '*' appearing in a regex match when used inside brackets. Resolve Issue #90. --- CHANGES.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index d8853593b..fc1a53dd7 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,6 +1,12 @@ Next release ============ +Bug Fixes +--------- + +- URL Dispatch properly handles a '.*' or '*' appearing in a regex match + when used inside brackets. Resolve Issue #90. + Features -------- -- cgit v1.2.3 From d93ea2929c516a5bf1f2d2ad5177cf42a1fef7c0 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 16 Jan 2011 01:33:31 -0500 Subject: - Add ``add_directive`` method to configurator, which allows framework extenders to add methods to the configurator (ala ZCML directives). --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index fc1a53dd7..e00c59a1f 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -19,6 +19,9 @@ Features - Add ``charset`` attribute to ``pyramid.testing.DummyRequest`` (unconditionally ``UTF-8``). +- Add ``add_directive`` method to configurator, which allows framework + extenders to add methods to the configurator (ala ZCML directives). + Paster Templates ---------------- -- cgit v1.2.3 From 08170aac53e6185ec68709c477e2e33436f8e38c Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 16 Jan 2011 16:33:17 -0500 Subject: - When ``Configurator.include`` is passed a *module* as an argument, it defaults to attempting to find and use a callable named ``includeme`` within that module. This makes it possible to use ``config.include('some.module')`` rather than ``config.include('some.module.somefunc')`` as long as the include function within ``some.module`` is named ``includeme``. --- CHANGES.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index e00c59a1f..27a723fb4 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -22,6 +22,13 @@ Features - Add ``add_directive`` method to configurator, which allows framework extenders to add methods to the configurator (ala ZCML directives). +- When ``Configurator.include`` is passed a *module* as an argument, it + defaults to attempting to find and use a callable named ``includeme`` + within that module. This makes it possible to use + ``config.include('some.module')`` rather than + ``config.include('some.module.somefunc')`` as long as the include function + within ``some.module`` is named ``includeme``. + Paster Templates ---------------- -- cgit v1.2.3 From e333c2c2236cbfd11809ee393aa71be1b4846d88 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 16 Jan 2011 17:25:34 -0500 Subject: Remove configurator.add_handler, handler-related functions and methods from pyramid.view, handler ZCML directive. This functionality is to be moved to a "pyramid_handlers" package. Fix add_directive to properly persist directives across configurator creations. --- CHANGES.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 27a723fb4..6d613fa3f 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -7,6 +7,24 @@ Bug Fixes - URL Dispatch properly handles a '.*' or '*' appearing in a regex match when used inside brackets. Resolve Issue #90. +Backwards Incompatibilities +--------------------------- + +- The ``add_handler`` method of a Configurator has been removed from the + Pyramid core. Handlers are now a feature of the ``pyramid_handlers`` + package, which can be downloaded from PyPI. Documentation for the package + should be available via http://pylonsproject.org, which describes how to + get this method back after depending upon ``pyramid_handlers`` as an + ``install_requires`` dependency. + +- The ``pyramid.view.action`` decorator has been removed from the Pyramid + core. Handlers are now a feature of the ``pyramid_handlers`` package. It + should now be imported from ``pyramid_handlers`` e.g. ``from + pyramid_handlers import action``. + +- The ``handler`` ZCML directive has been removed. It is now a feature of + the ``pyramid_handlers`` package. + Features -------- -- cgit v1.2.3 From 2fa5764cb1fd001550ae7c985333718667b86b1c Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 16 Jan 2011 17:41:10 -0500 Subject: - The ``pylons_minimal``, ``pylons_basic`` and ``pylons_sqla`` paster templates were removed. Use ``pyramid_sqla`` (available from PyPI) as a generic replacement for Pylons-esque development. - All references to ``add_handler`` and the ``handler`` ZCML directive have been removed from the docs, and stubs which point to ``pylons_handlers`` package have replaced them. --- CHANGES.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 6d613fa3f..67562fbd6 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -25,6 +25,10 @@ Backwards Incompatibilities - The ``handler`` ZCML directive has been removed. It is now a feature of the ``pyramid_handlers`` package. +- The ``pylons_minimal``, ``pylons_basic`` and ``pylons_sqla`` paster + templates were removed. Use ``pyramid_sqla`` (available from PyPI) as a + generic replacement for Pylons-esque development. + Features -------- -- cgit v1.2.3 From c1eb0c69f2067baa567f68f6cc472397ec71f65a Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 18 Jan 2011 10:39:24 -0500 Subject: - The ``make_app`` function has been removed from the ``pyramid.router`` module. It continues life within the ``pyramid_zcml`` package. This leaves the ``pyramid.router`` module without any API functions. - The ``configure_zcml`` setting within the deployment settings (within ``**settings`` passed to a Pyramid ``main`` function) has ceased to have any meaning. - The ``starter_zcml`` paster template has been moved to the ``pyramid_zcml`` package. - The ``bfg2pyramid`` script now converts ZCML include tags that have ``repoze.bfg.includes`` as a package attribute to the value ``pyramid_zcml``. For example, ```` will be converted to ````. - The ``load_zcml`` method of a Configurator has been removed from the Pyramid core. Loading ZCML is now a feature of the ``pyramid_zcml`` package, which can be downloaded from PyPI. Documentation for the package should be available via http://pylonsproject.org, which describes how to get this method back after depending upon ``pyramid_zcml`` as an ``install_requires`` dependency. - The ``pyramid.includes`` subpackage has been removed. ZCML files which use include the package ``pyramid.includes`` (e.g. ````) now must include the ``pyramid_zcml`` package instead (e.g. ``). - The "Declarative Configuration" narrative chapter has been removed (it was moved to the ``pyramid_zcml`` pakcage). - The add_directive method now accepts an "action_wrap" flag. - Fix some orphaned references. - Remove some docstring references to ZCML directives. - All integration test fixtures have been changed to use imperative configuration rather than ZCML configuration. --- CHANGES.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 67562fbd6..ac020b4b1 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -29,6 +29,17 @@ Backwards Incompatibilities templates were removed. Use ``pyramid_sqla`` (available from PyPI) as a generic replacement for Pylons-esque development. +- The ``make_app`` function has been removed from the ``pyramid.router`` + module. It continues life within the ``pyramid_zcml`` package. This + leaves the ``pyramid.router`` module without any API functions. + +- The ``configure_zcml`` setting within the deployment settings (within + ``**settings`` passed to a Pyramid ``main`` function) has ceased to have any + meaning. + +- The ``starter_zcml`` paster template has been moved to the ``pyramid_zcml`` + package. + Features -------- @@ -51,6 +62,11 @@ Features ``config.include('some.module.somefunc')`` as long as the include function within ``some.module`` is named ``includeme``. +- The ``bfg2pyramid`` script now converts ZCML include tags that have + ``repoze.bfg.includes`` as a package attribute to the value + ``pyramid_zcml``. For example, ```` + will be converted to ````. + Paster Templates ---------------- -- cgit v1.2.3 From d4b0ea1c9f3351f1b499f7be11bc603c2b894a73 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 18 Jan 2011 10:50:53 -0500 Subject: descriptions --- CHANGES.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index ac020b4b1..d3f826958 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -17,6 +17,18 @@ Backwards Incompatibilities get this method back after depending upon ``pyramid_handlers`` as an ``install_requires`` dependency. +- The ``load_zcml`` method of a Configurator has been removed from the + Pyramid core. Loading ZCML is now a feature of the ``pyramid_zcml`` + package, which can be downloaded from PyPI. Documentation for the package + should be available via http://pylonsproject.org, which describes how to + get this method back after depending upon ``pyramid_zcml`` as an + ``install_requires`` dependency. + +- The ``pyramid.includes`` subpackage has been removed. ZCML files which use + include the package ``pyramid.includes`` (e.g. ````) now must include the ``pyramid_zcml`` + package instead (e.g. ``). + - The ``pyramid.view.action`` decorator has been removed from the Pyramid core. Handlers are now a feature of the ``pyramid_handlers`` package. It should now be imported from ``pyramid_handlers`` e.g. ``from @@ -88,6 +100,9 @@ Documentation - Document the ``request.override_renderer`` attribute within the narrative "Renderers" chapter in a section named "Overriding A Renderer at Runtime". +- The "Declarative Configuration" narrative chapter has been removed (it was + moved to the ``pyramid_zcml`` pakcage). + Deprecations ------------ -- cgit v1.2.3 From c9c3c487bcaedeca97bb6463a00188b0dc01203a Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 18 Jan 2011 12:25:56 -0500 Subject: - Most references to ZCML in narrative chapters have been removed or redirected to ``pyramid_zcml`` locations. --- CHANGES.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index d3f826958..0cce2e28e 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -26,8 +26,8 @@ Backwards Incompatibilities - The ``pyramid.includes`` subpackage has been removed. ZCML files which use include the package ``pyramid.includes`` (e.g. ````) now must include the ``pyramid_zcml`` - package instead (e.g. ``). + package="pyramid.includes"/>``) now must include the ``pyramid_zcml`` + package instead (e.g. ````). - The ``pyramid.view.action`` decorator has been removed from the Pyramid core. Handlers are now a feature of the ``pyramid_handlers`` package. It @@ -101,7 +101,10 @@ Documentation "Renderers" chapter in a section named "Overriding A Renderer at Runtime". - The "Declarative Configuration" narrative chapter has been removed (it was - moved to the ``pyramid_zcml`` pakcage). + moved to the ``pyramid_zcml`` package). + +- Most references to ZCML in narrative chapters have been removed or + redirected to ``pyramid_zcml`` locations. Deprecations ------------ -- cgit v1.2.3 From 079bb25384a6c7dff3acc7c0340a52adeb645c90 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 18 Jan 2011 15:14:40 -0500 Subject: prep for 1.0a10 --- CHANGES.txt | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 0cce2e28e..71982e78b 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,5 +1,5 @@ -Next release -============ +1.0a10 (2011-01-18) +=================== Bug Fixes --------- @@ -13,16 +13,20 @@ Backwards Incompatibilities - The ``add_handler`` method of a Configurator has been removed from the Pyramid core. Handlers are now a feature of the ``pyramid_handlers`` package, which can be downloaded from PyPI. Documentation for the package - should be available via http://pylonsproject.org, which describes how to - get this method back after depending upon ``pyramid_handlers`` as an - ``install_requires`` dependency. + should be available via + http://pylonsproject.org/projects/pyramid_handlers/dev, which describes how + to add a configuration statement to your ``main`` block to reobtain this + method. You will also need to add an ``install_requires`` dependency upon + ``pyramid_handlers`` to your ``setup.py`` file. - The ``load_zcml`` method of a Configurator has been removed from the Pyramid core. Loading ZCML is now a feature of the ``pyramid_zcml`` package, which can be downloaded from PyPI. Documentation for the package - should be available via http://pylonsproject.org, which describes how to - get this method back after depending upon ``pyramid_zcml`` as an - ``install_requires`` dependency. + should be available via + http://pylonsproject.org/projects/pyramid_zcml/dev, which describes how + to add a configuration statement to your ``main`` block to reobtain this + method. You will also need to add an ``install_requires`` dependency upon + ``pyramid_zcml`` to your ``setup.py`` file. - The ``pyramid.includes`` subpackage has been removed. ZCML files which use include the package ``pyramid.includes`` (e.g. `` Date: Wed, 19 Jan 2011 01:48:06 -0500 Subject: Add changelog entry about merging caseman-master --- CHANGES.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 71982e78b..01b330b1d 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,12 @@ +Next release +============ + +Documentation +------------- + +- Merged caseman-master narrative editing branch, many wording fixes and + extensions. + 1.0a10 (2011-01-18) =================== -- cgit v1.2.3 From 0592891ad1bfe1ec862a091e0667d1ad32d1b7fe Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 19 Jan 2011 01:58:36 -0500 Subject: reformat --- CHANGES.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 01b330b1d..5142c3380 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -13,8 +13,8 @@ Documentation Bug Fixes --------- -- URL Dispatch properly handles a '.*' or '*' appearing in a regex match - when used inside brackets. Resolve Issue #90. +- URL dispatch now properly handles a ``.*`` or ``*`` appearing in a regex + match when used inside brackets. Resolves issue #90. Backwards Incompatibilities --------------------------- -- cgit v1.2.3 From a0535390b93d59ef77b96431df732e74240236a0 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 19 Jan 2011 02:06:36 -0500 Subject: - When a ``pyramid.exceptions.Forbidden`` error is raised, its status code now ``403 Forbidden``. It was previously ``401 Unauthorized``, for backwards compatibility purposes with ``repoze.bfg``. This change will cause problems for users of Pyramid with ``repoze.who``, which intercepts ``401 Unauthorized`` by default, but allows ``403 Forbidden`` to pass through. Those deployments will need to configure ``repoze.who`` to also react to ``403 Forbidden``. --- CHANGES.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 5142c3380..11bcaadb5 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -7,6 +7,17 @@ Documentation - Merged caseman-master narrative editing branch, many wording fixes and extensions. +Backwards Incompatibilities +--------------------------- + +- When a ``pyramid.exceptions.Forbidden`` error is raised, its status code + now ``403 Forbidden``. It was previously ``401 Unauthorized``, for + backwards compatibility purposes with ``repoze.bfg``. This change will + cause problems for users of Pyramid with ``repoze.who``, which intercepts + ``401 Unauthorized`` by default, but allows ``403 Forbidden`` to pass + through. Those deployments will need to configure ``repoze.who`` to also + react to ``403 Forbidden``. + 1.0a10 (2011-01-18) =================== -- cgit v1.2.3 From 6fd4508b8d3a9a957f91e1254f9c95990b5cf3b4 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 19 Jan 2011 11:32:15 -0500 Subject: changelog entry for authtkt tokens feature --- CHANGES.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 7bd878fca..84b53b341 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,6 +1,14 @@ Next release ============ +Features +-------- + +- The AuthTktAuthenticationPolicy now accepts a ``tokens`` parameter via + ``pyramid.security.remember``. The value must be a sequence of strings. + Tokens are placed into the auth_tkt "tokens" field and returned in the + auth_tkt cookie. + Documentation ------------- @@ -299,9 +307,6 @@ Bug Fixes Features -------- -- When using the auth_tkt authentication plugin accept a ``tokens`` parameter - in :py:func:`pyramid.security.remember`. - - If a resource implements a ``__resource_url__`` method, it will be called as the result of invoking the ``pyramid.url.resource_url`` function to generate a URL, overriding the default logic. See the new "Generating The -- cgit v1.2.3 From 765336ac32bac7de7e36047b15caadb71fceaf69 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 19 Jan 2011 13:14:31 -0500 Subject: - The default value for the ``cookie_on_exception`` parameter to ``pyramid.session.UnencyrptedCookieSessionFactory`` is now ``True``. This means that when view code causes an exception to be raised, and the session has been mutated, a cookie will be sent back in the response. Previously its default value was ``False``. --- CHANGES.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 84b53b341..32d145c9f 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -26,6 +26,12 @@ Backwards Incompatibilities through. Those deployments will need to configure ``repoze.who`` to also react to ``403 Forbidden``. +- The default value for the ``cookie_on_exception`` parameter to + ``pyramid.session.UnencyrptedCookieSessionFactory`` is now ``True``. This + means that when view code causes an exception to be raised, and the session + has been mutated, a cookie will be sent back in the response. Previously + its default value was ``False``. + 1.0a10 (2011-01-18) =================== -- cgit v1.2.3 From 9904b3546478e3299e41d8552370e722dfbd08d4 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 19 Jan 2011 19:43:45 -0500 Subject: - Fix deprecated example showing ``chameleon_zpt`` API call in testing narrative chapter. --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 32d145c9f..0721a359f 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -15,6 +15,9 @@ Documentation - Merged caseman-master narrative editing branch, many wording fixes and extensions. +- Fix deprecated example showing ``chameleon_zpt`` API call in testing + narrative chapter. + Backwards Incompatibilities --------------------------- -- cgit v1.2.3 From 36a3bf111cae15ff46d0769ccfb2edc1ecf050d3 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 19 Jan 2011 20:34:46 -0500 Subject: get urls right --- CHANGES.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 0721a359f..86473b9b3 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -51,7 +51,7 @@ Backwards Incompatibilities Pyramid core. Handlers are now a feature of the ``pyramid_handlers`` package, which can be downloaded from PyPI. Documentation for the package should be available via - http://pylonsproject.org/projects/pyramid_handlers/dev, which describes how + http://pylonsproject.org/projects/pyramid_handlers/dev/, which describes how to add a configuration statement to your ``main`` block to reobtain this method. You will also need to add an ``install_requires`` dependency upon ``pyramid_handlers`` to your ``setup.py`` file. @@ -60,7 +60,7 @@ Backwards Incompatibilities Pyramid core. Loading ZCML is now a feature of the ``pyramid_zcml`` package, which can be downloaded from PyPI. Documentation for the package should be available via - http://pylonsproject.org/projects/pyramid_zcml/dev, which describes how + http://pylonsproject.org/projects/pyramid_zcml/dev/, which describes how to add a configuration statement to your ``main`` block to reobtain this method. You will also need to add an ``install_requires`` dependency upon ``pyramid_zcml`` to your ``setup.py`` file. -- cgit v1.2.3 From 607d756e962dce912134e075dbcc5f11a91987f0 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 19 Jan 2011 21:34:19 -0500 Subject: - The ``pyramid_zodb``, ``pyramid_routesalchemy`` and ``pyramid_alchemy`` paster templates now use a default "commit veto" hook when configuring the ``repoze.tm2`` transaction manager in ``development.ini``. This prevents a transaction from being committed when the response status code is within the 400 or 500 ranges. See also http://docs.repoze.org/tm2/#using-a-commit-veto. --- CHANGES.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 86473b9b3..416de00f9 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -35,6 +35,16 @@ Backwards Incompatibilities has been mutated, a cookie will be sent back in the response. Previously its default value was ``False``. +Paster Templates +---------------- + +- The ``pyramid_zodb``, ``pyramid_routesalchemy`` and ``pyramid_alchemy`` + paster templates now use a default "commit veto" hook when configuring the + ``repoze.tm2`` transaction manager in ``development.ini``. This prevents a + transaction from being committed when the response status code is within + the 400 or 500 ranges. See also + http://docs.repoze.org/tm2/#using-a-commit-veto. + 1.0a10 (2011-01-18) =================== -- cgit v1.2.3 From 5f47801ae33d89a0ac87d9d227639d60aed23ff1 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 19 Jan 2011 22:00:43 -0500 Subject: - Using the ``pyramid.view.bfg_view`` alias for ``pyramid.view.view_config`` (a backwards compatibility shim) now issues a deprecation warning. --- CHANGES.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 416de00f9..8df963aac 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -18,6 +18,12 @@ Documentation - Fix deprecated example showing ``chameleon_zpt`` API call in testing narrative chapter. +Deprecations +------------- + +- Using the ``pyramid.view.bfg_view`` alias for ``pyramid.view.view_config`` + (a backwards compatibility shim) now issues a deprecation warning. + Backwards Incompatibilities --------------------------- -- cgit v1.2.3 From 14e91bfd4af61251853b73aad33ff47c237339aa Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 19 Jan 2011 22:27:06 -0500 Subject: - Added "Adding Methods to the Configurator via ``add_directive``" section to Advanced Configuration narrative chapter. --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 8df963aac..5c0a90d4d 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -18,6 +18,9 @@ Documentation - Fix deprecated example showing ``chameleon_zpt`` API call in testing narrative chapter. +- Added "Adding Methods to the Configurator via ``add_directive``" section to + Advanced Configuration narrative chapter. + Deprecations ------------- -- cgit v1.2.3 From d0e1019a583d64f171a666f7b3cd9c529c1b7efd Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 21 Jan 2011 01:04:53 -0500 Subject: - Add ``wild_domain`` argument to AuthTktAuthenticationPolicy, which defaults to ``True``. If it is set to ``False``, the feature of the policy which sets a cookie with a wilcard domain will be turned off. --- CHANGES.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 5c0a90d4d..babc95600 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -9,6 +9,10 @@ Features Tokens are placed into the auth_tkt "tokens" field and returned in the auth_tkt cookie. +- Add ``wild_domain`` argument to AuthTktAuthenticationPolicy, which defaults + to ``True``. If it is set to ``False``, the feature of the policy which + sets a cookie with a wilcard domain will be turned off. + Documentation ------------- -- cgit v1.2.3 From 72ad3374afb491d652e2a22951b09ca399c8d0c5 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 21 Jan 2011 02:01:18 -0500 Subject: - Add docs for ``add_finished_callback``, ``add_response_callback``, ``route_path``, ``route_url``, and ``static_url`` methods to ``pyramid.request.Request`` API docs. --- CHANGES.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index babc95600..5c5588a45 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -25,6 +25,10 @@ Documentation - Added "Adding Methods to the Configurator via ``add_directive``" section to Advanced Configuration narrative chapter. +- Add docs for ``add_finished_callback``, ``add_response_callback``, + ``route_path``, ``route_url``, and ``static_url`` methods to + ``pyramid.request.Request`` API docs. + Deprecations ------------- -- cgit v1.2.3 From ddf07e7f1486b195bc337a3035f6852980a4d3d7 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 21 Jan 2011 02:43:02 -0500 Subject: - Add (minimal) documentation about using I18N within Mako templates to "Internationalization and Localization" narrative chapter. --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 5c5588a45..4cea09e98 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -29,6 +29,9 @@ Documentation ``route_path``, ``route_url``, and ``static_url`` methods to ``pyramid.request.Request`` API docs. +- Add (minimal) documentation about using I18N within Mako templates to + "Internationalization and Localization" narrative chapter. + Deprecations ------------- -- cgit v1.2.3 From c88d441533c46c80d3e08572013973446308ebd5 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 21 Jan 2011 04:04:45 -0500 Subject: - Added "What's New in Pyramid 1.0" chapter to HTML rendering of documentation. --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 4cea09e98..886f2d5ae 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -16,6 +16,9 @@ Features Documentation ------------- +- Added "What's New in Pyramid 1.0" chapter to HTML rendering of + documentation. + - Merged caseman-master narrative editing branch, many wording fixes and extensions. -- cgit v1.2.3 From 2a13b0dff000c5cd766299c52d495d82e3ec83b7 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 21 Jan 2011 04:38:14 -0500 Subject: - ``testing.setUp`` now adds a ``settings`` attribute to the registry (both when it's passed a registry without any settings and when it creates one). - The ``testing.setUp`` function now takes a ``settings`` argument, which should be a dictionary. Its values will subsequently be available on the returned ``config`` object as ``config.registry.settings``. --- CHANGES.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 886f2d5ae..5b228e77a 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -13,6 +13,16 @@ Features to ``True``. If it is set to ``False``, the feature of the policy which sets a cookie with a wilcard domain will be turned off. +Bug Fixes +--------- + +- ``testing.setUp`` now adds a ``settings`` attribute to the registry (both + when it's passed a registry without any settings and when it creates one). + +- The ``testing.setUp`` function now takes a ``settings`` argument, which + should be a dictionary. Its values will subsequently be available on the + returned ``config`` object as ``config.registry.settings``. + Documentation ------------- -- cgit v1.2.3 From 77049562f0cb6769cc18af5c41b13aa97653a4a3 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 21 Jan 2011 04:43:21 -0500 Subject: - Move content of "Forms" chapter back to "Views" chapter; I can't think of a better place to put it. --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 5b228e77a..33949f29e 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -45,6 +45,9 @@ Documentation - Add (minimal) documentation about using I18N within Mako templates to "Internationalization and Localization" narrative chapter. +- Move content of "Forms" chapter back to "Views" chapter; I can't think of a + better place to put it. + Deprecations ------------- -- cgit v1.2.3 From 57cc8680abf2c2bce3a8bc405277677043ffe007 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 21 Jan 2011 12:26:17 -0500 Subject: - Slightly improved interface docs for ``IAuthorizationPolicy``. --- CHANGES.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 33949f29e..1e68eafea 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -48,6 +48,8 @@ Documentation - Move content of "Forms" chapter back to "Views" chapter; I can't think of a better place to put it. +- Slightly improved interface docs for ``IAuthorizationPolicy``. + Deprecations ------------- -- cgit v1.2.3 From 47442fb154eae5c6cd71a54e9b4aeee484e1c38b Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 21 Jan 2011 20:05:09 -0500 Subject: - Add a ``MANIFEST.in`` file to each paster template. See https://github.com/Pylons/pyramid/issues#issue/95 Closes issue #95. --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 1e68eafea..cf502f7e1 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -13,6 +13,9 @@ Features to ``True``. If it is set to ``False``, the feature of the policy which sets a cookie with a wilcard domain will be turned off. +- Add a ``MANIFEST.in`` file to each paster template. See + https://github.com/Pylons/pyramid/issues#issue/95 + Bug Fixes --------- -- cgit v1.2.3 From 65f203e7290fdc9905896334ca87f5d34667d961 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 21 Jan 2011 21:47:53 -0500 Subject: - Minimally explain usage of custom regular expressions in URL dispatch replacement markers within URL Dispatch chapter. --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index cf502f7e1..48557e780 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -53,6 +53,9 @@ Documentation - Slightly improved interface docs for ``IAuthorizationPolicy``. +- Minimally explain usage of custom regular expressions in URL dispatch + replacement markers within URL Dispatch chapter. + Deprecations ------------- -- cgit v1.2.3 From a44845ef92567c90ba8d163f0cb5203151243001 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 21 Jan 2011 21:56:04 -0500 Subject: prep for 1.0b1 --- CHANGES.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 48557e780..13fe3f2c2 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,5 +1,5 @@ -Next release -============ +1.0b1 (2011-01-18) +================== Features -------- -- cgit v1.2.3 From 2228ef587a355cafe9524e9f18f748aa331e5d6c Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 21 Jan 2011 22:16:41 -0500 Subject: of course, wrong date in tarball --- CHANGES.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 13fe3f2c2..598dc094e 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,4 +1,4 @@ -1.0b1 (2011-01-18) +1.0b1 (2011-01-21) ================== Features -- cgit v1.2.3 From a87a68d83f713ed3cd81011b486178179e3b413e Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 22 Jan 2011 23:02:57 -0500 Subject: - The ``production.ini`` generated by all paster templates now have an effective logging level of WARN, which prevents e.g. SQLAlchemy statement logging and other inappropriate output. - The ``production.ini`` of the ``pyramid_routesalchemy`` and ``pyramid_alchemy`` paster templates did not have a ``sqlalchemy`` logger section, preventing ``paster serve production.ini`` from working. - The ``pyramid_routesalchemy`` and ``pyramid_alchemy`` paster templates used the ``{{package}}`` variable in a place where it should have used the ``{{project}}`` variable, causing applications created with uppercase letters e.g. ``paster create -t pyramid_routesalchemy Dibbus`` to fail to start when ``paster serve development.ini`` was used against the result. See https://github.com/Pylons/pyramid/issues/#issue/107 Closes #107 --- CHANGES.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 598dc094e..f6093d23f 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,24 @@ +Next release +============ + +Bug Fixes +--------- + +- The ``production.ini`` generated by all paster templates now have an + effective logging level of WARN, which prevents e.g. SQLAlchemy statement + logging and other inappropriate output. + +- The ``production.ini`` of the ``pyramid_routesalchemy`` and + ``pyramid_alchemy`` paster templates did not have a ``sqlalchemy`` logger + section, preventing ``paster serve production.ini`` from working. + +- The ``pyramid_routesalchemy`` and ``pyramid_alchemy`` paster templates used + the ``{{package}}`` variable in a place where it should have used the + ``{{project}}`` variable, causing applications created with uppercase + letters e.g. ``paster create -t pyramid_routesalchemy Dibbus`` to fail to + start when ``paster serve development.ini`` was used against the result. + See https://github.com/Pylons/pyramid/issues/#issue/107 + 1.0b1 (2011-01-21) ================== -- cgit v1.2.3 From 877904ac1b192191b0bdac4f7e4e1cd6d5f27884 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 22 Jan 2011 23:25:30 -0500 Subject: - The ``render_view`` method of ``pyramid.renderers.RendererHelper`` passed an incorrect value into the renderer for ``renderer_info``. It now passes an instance of ``RendererHelper`` instead of a dictionary, which is consistent with other usages. See https://github.com/Pylons/pyramid/issues#issue/106 Closes #106 --- CHANGES.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index f6093d23f..4f48b2743 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -19,6 +19,12 @@ Bug Fixes start when ``paster serve development.ini`` was used against the result. See https://github.com/Pylons/pyramid/issues/#issue/107 +- The ``render_view`` method of ``pyramid.renderers.RendererHelper`` passed + an incorrect value into the renderer for ``renderer_info``. It now passes + an instance of ``RendererHelper`` instead of a dictionary, which is + consistent with other usages. See + https://github.com/Pylons/pyramid/issues#issue/106 + 1.0b1 (2011-01-21) ================== -- cgit v1.2.3 From cf3177ed6d6a20f6951a4008ee120c9763aa988e Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 24 Jan 2011 21:57:01 -0500 Subject: - A bug existed in the ``pyramid.authentication.AuthTktCookieHelper`` which would break any usage of an AuthTktAuthenticationPolicy when an auth tkt authentication policy was configured to reissue its tokens (``reissue_time`` < ``timeout`` / ``max_age``). Symptom: ``ValueError: ('Invalid token %r', '')``. See https://github.com/Pylons/pyramid/issues#issue/108. --- CHANGES.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 4f48b2743..fa6e07012 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -25,6 +25,13 @@ Bug Fixes consistent with other usages. See https://github.com/Pylons/pyramid/issues#issue/106 +- A bug existed in the ``pyramid.authentication.AuthTktCookieHelper`` which + would break any usage of an AuthTktAuthenticationPolicy when an auth tkt + authentication policy was configured to reissue its tokens + (``reissue_time`` < ``timeout`` / ``max_age``). Symptom: ``ValueError: + ('Invalid token %r', '')``. See + https://github.com/Pylons/pyramid/issues#issue/108. + 1.0b1 (2011-01-21) ================== -- cgit v1.2.3 From 42a58bb29f922b381b7db0f1bdb63cd48e699f29 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 24 Jan 2011 21:58:49 -0500 Subject: wording --- CHANGES.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index fa6e07012..dc8405be8 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -26,10 +26,9 @@ Bug Fixes https://github.com/Pylons/pyramid/issues#issue/106 - A bug existed in the ``pyramid.authentication.AuthTktCookieHelper`` which - would break any usage of an AuthTktAuthenticationPolicy when an auth tkt - authentication policy was configured to reissue its tokens - (``reissue_time`` < ``timeout`` / ``max_age``). Symptom: ``ValueError: - ('Invalid token %r', '')``. See + would break any usage of an AuthTktAuthenticationPolicy when one was + configured to reissue its tokens (``reissue_time`` < ``timeout`` / + ``max_age``). Symptom: ``ValueError: ('Invalid token %r', '')``. See https://github.com/Pylons/pyramid/issues#issue/108. 1.0b1 (2011-01-21) -- cgit v1.2.3 From 237bf1a37bb36d0ef37aa068a2d35b7f69ce92f1 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 24 Jan 2011 22:23:06 -0500 Subject: prep for 1.0b2 --- CHANGES.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index dc8405be8..a43e19648 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,5 +1,5 @@ -Next release -============ +1.0b2 (2011-01-24) +================== Bug Fixes --------- -- cgit v1.2.3 From bd330cfc22555ce0026b92d40091d0745b60e36c Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 25 Jan 2011 23:00:44 -0500 Subject: - Use © instead of copyright symbol in paster templates / tutorial templates for the benefit of folks who cutnpaste and save to a non-UTF8 format. --- CHANGES.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index a43e19648..e3f4dc02d 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,14 @@ +Next release +============ + +Bug Fixes +--------- + +- Use © instead of copyright symbol in paster templates / tutorial + templates for the benefit of folks who cutnpaste and save to a non-UTF8 + format. + + 1.0b2 (2011-01-24) ================== -- cgit v1.2.3 From 6ab71c68f61979891f696d68b124b378e477a76f Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 26 Jan 2011 01:53:41 -0500 Subject: - ``pyramid.view.append_slash_notfound_view`` now preserves GET query parameters across redirects. --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index e3f4dc02d..d591a437f 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -8,6 +8,9 @@ Bug Fixes templates for the benefit of folks who cutnpaste and save to a non-UTF8 format. +- ``pyramid.view.append_slash_notfound_view`` now preserves GET query + parameters across redirects. + 1.0b2 (2011-01-24) ================== -- cgit v1.2.3 From 2021a002c125f24995c78602e2f4b68df46b71f8 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 27 Jan 2011 17:59:07 -0500 Subject: - Beef up documentation related to ``set_default_permission``: explicitly mention that default permissions also protect exception views. --- CHANGES.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index d591a437f..68e83ea08 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -11,6 +11,12 @@ Bug Fixes - ``pyramid.view.append_slash_notfound_view`` now preserves GET query parameters across redirects. +Documentation +------------- + +- Beef up documentation related to ``set_default_permission``: explicitly + mention that default permissions also protect exception views. + 1.0b2 (2011-01-24) ================== -- cgit v1.2.3 From c61cd1070614fd88f217359ddca448773266edd8 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 28 Jan 2011 11:12:04 -0500 Subject: prep for 1.0b3 --- CHANGES.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 68e83ea08..b26f54e6d 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,5 +1,5 @@ -Next release -============ +1.0b3 (2011-01-28) +================== Bug Fixes --------- @@ -17,6 +17,8 @@ Documentation - Beef up documentation related to ``set_default_permission``: explicitly mention that default permissions also protect exception views. +- Paster templates and tutorials now use tabs instead of spaces in their HTML + templates. 1.0b2 (2011-01-24) ================== -- cgit v1.2.3 From 99d8e7c172e8fb267a6127d5cb6e4b111d89b383 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 28 Jan 2011 11:25:18 -0500 Subject: garden --- CHANGES.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index b26f54e6d..00c212c11 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,12 @@ +Next release +============ + +Documentation +------------- + +- Fixed bug in ZODB Wiki tutorial (missing dependency on ``docutils`` in + "models" step within ``setup.py``). + 1.0b3 (2011-01-28) ================== -- cgit v1.2.3 From 82043fde6b343ccc065e880d2e9dcca8a99512ff Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 28 Jan 2011 21:37:07 -0500 Subject: transposed --- CHANGES.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 00c212c11..c2922f591 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -26,7 +26,7 @@ Documentation - Beef up documentation related to ``set_default_permission``: explicitly mention that default permissions also protect exception views. -- Paster templates and tutorials now use tabs instead of spaces in their HTML +- Paster templates and tutorials now use spaces instead of tabs in their HTML templates. 1.0b2 (2011-01-24) -- cgit v1.2.3 From d533b19d06ffa2e3e55dfdf7689dbd718ffeec7a Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 28 Jan 2011 23:45:57 -0500 Subject: - Removed API documentation for ``pyramid.testing`` APIs named ``registerDummySecurityPolicy``, ``registerResources``, ``registerModels``, ``registerEventListener``, ``registerTemplateRenderer``, ``registerDummyRenderer``, ``registerView``, ``registerUtility``, ``registerAdapter``, ``registerSubscriber``, ``registerRoute``, and ``registerSettings``. - Deprecated-since-BFG-1.2 APIs from ``pyramid.testing`` now properly emit deprecation warnings. --- CHANGES.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index c2922f591..607114d84 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -7,6 +7,19 @@ Documentation - Fixed bug in ZODB Wiki tutorial (missing dependency on ``docutils`` in "models" step within ``setup.py``). +- Removed API documentation for ``pyramid.testing`` APIs named + ``registerDummySecurityPolicy``, ``registerResources``, ``registerModels``, + ``registerEventListener``, ``registerTemplateRenderer``, + ``registerDummyRenderer``, ``registerView``, ``registerUtility``, + ``registerAdapter``, ``registerSubscriber``, ``registerRoute``, + and ``registerSettings``. + +Bug Fixes +--------- + +- Deprecated-since-BFG-1.2 APIs from ``pyramid.testing`` now properly emit + deprecation warnings. + 1.0b3 (2011-01-28) ================== -- cgit v1.2.3 From 3e4f429cce60465f2d58d0a60eb6a3adb5f9a377 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 29 Jan 2011 01:29:12 -0500 Subject: - Moved "Using ZODB With ZEO" and "Using repoze.catalog Within Pyramid" tutorials out of core documentation and into the Pyramid Tutorials site (http://docs.pylonsproject.org/projects/pyramid_tutorials/dev/). --- CHANGES.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 607114d84..82c1d2d33 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -14,6 +14,10 @@ Documentation ``registerAdapter``, ``registerSubscriber``, ``registerRoute``, and ``registerSettings``. +- Moved "Using ZODB With ZEO" and "Using repoze.catalog Within Pyramid" + tutorials out of core documentation and into the Pyramid Tutorials site + (http://docs.pylonsproject.org/projects/pyramid_tutorials/dev/). + Bug Fixes --------- -- cgit v1.2.3 From 9afa52f0783d77b19e6ff0a509c5d556950a8a46 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 29 Jan 2011 02:34:40 -0500 Subject: - Added ``egg:repoze.retry#retry`` middleware to the WSGI pipeline in ZODB templates (retry ZODB conflict errors which occur in normal operations). --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 82c1d2d33..1e143daa5 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -24,6 +24,9 @@ Bug Fixes - Deprecated-since-BFG-1.2 APIs from ``pyramid.testing`` now properly emit deprecation warnings. +- Added ``egg:repoze.retry#retry`` middleware to the WSGI pipeline in ZODB + templates (retry ZODB conflict errors which occur in normal operations). + 1.0b3 (2011-01-28) ================== -- cgit v1.2.3 From eac19863562e6ad0658ccc15c84637cd79ea8d7c Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 29 Jan 2011 02:50:19 -0500 Subject: - Changed "Cleaning up After a Request" section in the URL Dispatch chapter to use ``request.add_finished_callback`` instead of jamming an object with a ``__del__`` into the WSGI environment. --- CHANGES.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 1e143daa5..0f71105fe 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -18,6 +18,10 @@ Documentation tutorials out of core documentation and into the Pyramid Tutorials site (http://docs.pylonsproject.org/projects/pyramid_tutorials/dev/). +- Changed "Cleaning up After a Request" section in the URL Dispatch chapter + to use ``request.add_finished_callback`` instead of jamming an object with + a ``__del__`` into the WSGI environment. + Bug Fixes --------- -- cgit v1.2.3 From 9a27f04453a4a46a2fc9d00e8c33d367ea3c178c Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 30 Jan 2011 00:17:30 -0500 Subject: - Removed duplicate implementations of ``is_response``. Two competing implementations existed: one in ``pyramid.config`` and one in ``pyramid.view``. Now the one defined in ``pyramid.view`` is used internally by ``pyramid.config`` and continues to be advertised as an API. Closes #114. --- CHANGES.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 0f71105fe..3dd4f6cfe 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -31,6 +31,11 @@ Bug Fixes - Added ``egg:repoze.retry#retry`` middleware to the WSGI pipeline in ZODB templates (retry ZODB conflict errors which occur in normal operations). +- Removed duplicate implementations of ``is_response``. Two competing + implementations existed: one in ``pyramid.config`` and one in + ``pyramid.view``. Now the one defined in ``pyramid.view`` is used + internally by ``pyramid.config`` and continues to be advertised as an API. + 1.0b3 (2011-01-28) ================== -- cgit v1.2.3 From 1a49394ce5d67f84b79e5763385030bd1ce9fa97 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 30 Jan 2011 16:57:55 -0500 Subject: garden --- CHANGES.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 3dd4f6cfe..83b5b86de 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -22,6 +22,17 @@ Documentation to use ``request.add_finished_callback`` instead of jamming an object with a ``__del__`` into the WSGI environment. +- Remove duplication of ``add_route`` API documentation from URL Dispatch + narrative chapter. + +- Remove duplication of API and narrative documentation in + ``pyramid.view.view_config`` API docs by pointing to + ``pyramid.config.add_view`` documentation and narrative chapter + documentation. + +- Removed some API documentation duplicated in narrative portions of + documentation + Bug Fixes --------- -- cgit v1.2.3 From 71903ad7e4fdfa7e4dc14055631701cc5c9ebbda Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 30 Jan 2011 19:00:44 -0500 Subject: prep for 1.0 --- CHANGES.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 83b5b86de..bd5b74aea 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,5 +1,5 @@ -Next release -============ +1.0 (2011-01-30) +================ Documentation ------------- -- cgit v1.2.3 From 129007695d8805ffec9399a192e985e4c9fccb69 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 30 Jan 2011 19:02:08 -0500 Subject: note removal --- CHANGES.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index bd5b74aea..ffafe1b7d 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -33,6 +33,10 @@ Documentation - Removed some API documentation duplicated in narrative portions of documentation +- Removed "Overall Flow of Authentication" from SQLAlchemy + URL Dispatch + wiki tutorial due to print space concerns (moved to Pyramid Tutorials + site). + Bug Fixes --------- -- cgit v1.2.3 From 9595236d4f1212323dbf06670a80e6a4fb7c8fcf Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 9 Feb 2011 02:32:29 -0500 Subject: - URL pattern markers used in URL dispatch are permitted to specify a custom regex. For example, the pattern ``/{foo:\d+}`` means to match ``/12345`` (foo==12345 in the match dictionary) but not ``/abc``. However, custom regexes in a pattern marker which used squiggly brackets did not work. For example, ``/{foo:\d{4}}`` would fail to match ``/1234`` and ``/{foo:\d{1,2}}`` would fail to match ``/1`` or ``/11``. One level of inner squiggly brackets is now recognized so that the prior two patterns given as examples now work. See also https://github.com/Pylons/pyramid/issues/#issue/123. Closes #123 --- CHANGES.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index ffafe1b7d..34e8cd7b6 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,19 @@ +Next release +============ + +Bug Fixes +--------- + +- URL pattern markers used in URL dispatch are permitted to specify a custom + regex. For example, the pattern ``/{foo:\d+}`` means to match ``/12345`` + (foo==12345 in the match dictionary) but not ``/abc``. However, custom + regexes in a pattern marker which used squiggly brackets did not work. For + example, ``/{foo:\d{4}}`` would fail to match ``/1234`` and + ``/{foo:\d{1,2}}`` would fail to match ``/1`` or ``/11``. One level of + inner squiggly brackets is now recognized so that the prior two patterns + given as examples now work. See also + https://github.com/Pylons/pyramid/issues/#issue/123. + 1.0 (2011-01-30) ================ -- cgit v1.2.3 From fcbd7bfe4e777d39cb56a851fc3bbf61e97d536e Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 9 Feb 2011 18:25:06 -0500 Subject: - Integers and longs passed as ``elements`` to ``pyramid.url.resource_url`` or ``pyramid.request.Request.resource_url`` e.g. ``resource_url(context, request, 1, 2)`` (``1`` and ``2`` are the ``elements``) will now be converted implicitly to strings in the result. Previously passing integers or longs as elements would cause a TypeError. Closes #124 --- CHANGES.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 34e8cd7b6..8ee0b0bd0 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -14,6 +14,15 @@ Bug Fixes given as examples now work. See also https://github.com/Pylons/pyramid/issues/#issue/123. +Features +-------- + +- Integers and longs passed as ``elements`` to ``pyramid.url.resource_url`` + or ``pyramid.request.Request.resource_url`` e.g. ``resource_url(context, + request, 1, 2)`` (``1`` and ``2`` are the ``elements``) will now be + converted implicitly to strings in the result. Previously passing integers + or longs as elements would cause a TypeError. + 1.0 (2011-01-30) ================ -- cgit v1.2.3 From 296ee25ffb1405b7a5a12caf62fe5b1ed2aaed7b Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 12 Feb 2011 14:04:03 -0500 Subject: - ``pyramid_alchemy`` paster template now uses ``query.get`` rather than ``query.filter_by`` to take better advantage of identity map caching. - ``pyramid_alchemy`` paster template now has unit tests. --- CHANGES.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 8ee0b0bd0..160f28bff 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -23,6 +23,11 @@ Features converted implicitly to strings in the result. Previously passing integers or longs as elements would cause a TypeError. +- ``pyramid_alchemy`` paster template now uses ``query.get`` rather than + ``query.filter_by`` to take better advantage of identity map caching. + +- ``pyramid_alchemy`` paster template now has unit tests. + 1.0 (2011-01-30) ================ -- cgit v1.2.3 From 2242e6f858de86cedb943091c91ae78b4de6eb5e Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 13 Feb 2011 11:43:28 -0500 Subject: note changes --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 160f28bff..9a78dcbee 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -28,6 +28,9 @@ Features - ``pyramid_alchemy`` paster template now has unit tests. +- Added ``pyramid.i18n.make_localizer`` API (broken out from + ``get_localizer`` guts). + 1.0 (2011-01-30) ================ -- cgit v1.2.3 From b8fc93e83a646adbe83781feccc1d106310a79f2 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 17 Feb 2011 01:54:04 -0500 Subject: Undo the inner squiggly regex fix introduced in commit #9595236 because the regex breaks on Jython. See https://github.com/Pylons/pyramid/issues/#issue/123 --- CHANGES.txt | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 9a78dcbee..be295a51d 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,19 +1,6 @@ Next release ============ -Bug Fixes ---------- - -- URL pattern markers used in URL dispatch are permitted to specify a custom - regex. For example, the pattern ``/{foo:\d+}`` means to match ``/12345`` - (foo==12345 in the match dictionary) but not ``/abc``. However, custom - regexes in a pattern marker which used squiggly brackets did not work. For - example, ``/{foo:\d{4}}`` would fail to match ``/1234`` and - ``/{foo:\d{1,2}}`` would fail to match ``/1`` or ``/11``. One level of - inner squiggly brackets is now recognized so that the prior two patterns - given as examples now work. See also - https://github.com/Pylons/pyramid/issues/#issue/123. - Features -------- -- cgit v1.2.3 From 0fd8eab45796417bbd8653d3f4e952135d4f8960 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 22 Feb 2011 16:21:39 -0500 Subject: From the code: # While Chrome, IE, and Firefox can cope, Opera (at least) cannot # cope with a port number in the cookie domain when the URL it # receives the cookie from does not also have that port number in it # (e.g via a proxy). In the meantime, HTTP_HOST is sent with port # number, and neither Firefox nor Chrome do anything with the # information when it's provided in a cookie domain except strip it # out. So we strip out any port number from the cookie domain # aggressively to avoid problems. See also # https://github.com/Pylons/pyramid/issues/131 Closes #131 --- CHANGES.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index be295a51d..37d7a3dfc 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -18,6 +18,12 @@ Features - Added ``pyramid.i18n.make_localizer`` API (broken out from ``get_localizer`` guts). +Bug Fixes +--------- + +- Don't send port numbers along with domain information in cookies set by + AuthTktCookieHelper (see https://github.com/Pylons/pyramid/issues/131). + 1.0 (2011-01-30) ================ -- cgit v1.2.3 From 0a0edfcc42611fc9f815e7a4117674678840abb1 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 25 Feb 2011 00:36:44 -0500 Subject: - ``pyramid.url.route_path`` (and the shortcut ``pyramid.request.Request.route_url`` method) now include the WSGI SCRIPT_NAME at the front of the path if it is not empty (see https://github.com/Pylons/pyramid/issues/135). - ``pyramid.testing.DummyRequest`` now has a ``script_name`` attribute (the empty string). Closes #135 --- CHANGES.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 37d7a3dfc..85ee1b614 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -24,6 +24,14 @@ Bug Fixes - Don't send port numbers along with domain information in cookies set by AuthTktCookieHelper (see https://github.com/Pylons/pyramid/issues/131). +- ``pyramid.url.route_path`` (and the shortcut + ``pyramid.request.Request.route_url`` method) now include the WSGI + SCRIPT_NAME at the front of the path if it is not empty (see + https://github.com/Pylons/pyramid/issues/135). + +- ``pyramid.testing.DummyRequest`` now has a ``script_name`` attribute (the + empty string). + 1.0 (2011-01-30) ================ -- cgit v1.2.3 From 115c7137326a2739525fd53b96d2df42d3f0930b Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 1 Mar 2011 23:27:48 -0500 Subject: Add change note for dnouri's solution to issue 141. Closes #141. --- CHANGES.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 85ee1b614..e9abd5b55 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -32,6 +32,10 @@ Bug Fixes - ``pyramid.testing.DummyRequest`` now has a ``script_name`` attribute (the empty string). +- Don't quote ``:@&+$,`` symbols in ``*elements`` passed to + ``pyramid.url.route_url`` or ``pyramid.url.resource_url`` (see + https://github.com/Pylons/pyramid/issues#issue/141). + 1.0 (2011-01-30) ================ -- cgit v1.2.3 From b596e1812627c359908759d7a8d83c339f08e385 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 22 Mar 2011 01:05:14 -0400 Subject: - Include SCRIPT_NAME in redirects issued by ``pyramid.view.append_slash_notfound_view`` (see https://github.com/Pylons/pyramid/issues#issue/149). Closes #149 --- CHANGES.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index e9abd5b55..9ce6184a3 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -36,6 +36,10 @@ Bug Fixes ``pyramid.url.route_url`` or ``pyramid.url.resource_url`` (see https://github.com/Pylons/pyramid/issues#issue/141). +- Include SCRIPT_NAME in redirects issued by + ``pyramid.view.append_slash_notfound_view`` (see + https://github.com/Pylons/pyramid/issues#issue/149). + 1.0 (2011-01-30) ================ -- cgit v1.2.3