From db51c08cda155ae5d9921c62700ab813f58f5d72 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 19 Apr 2011 15:00:57 -0400 Subject: rendering --- CHANGES.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index affacb7d4..092423bc1 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -32,9 +32,13 @@ Features object (e.g. ``request.response`` within a view) now produces a new ``pyramid.response.Response`` object. This feature is meant to be used mainly when a view configured with a renderer needs to set response - attributes, but it can be used by any code to produce a response object - (although the response object produced must still be returned unless a - renderer is used). + attributes: all renderers will use the Response object implied by + ``request.response`` as the response object returned to the router. + + ``request.response`` can also be used by code in a view that does not use a + renderer, however the response object that is produced by + ``request.response`` must be returned when a renderer is not in play (it is + not a "global" response). - Integers and longs passed as ``elements`` to ``pyramid.url.resource_url`` or ``pyramid.request.Request.resource_url`` e.g. ``resource_url(context, -- cgit v1.2.3