From d0a5f0654e0468f9d50a4c1b98f9d316253ad64d Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 19 Jun 2011 20:19:27 -0400 Subject: - Base exception response content type again on accept header. - The ``pyramid.httpexceptions`` classes named ``HTTPFound``, ``HTTPMultipleChoices``, ``HTTPMovedPermanently``, ``HTTPSeeOther``, ``HTTPUseProxy``, and ``HTTPTemporaryRedirect`` now accept ``location`` as their first positional argument rather than ``detail``. This means that you can do, e.g. ``return pyramid.httpexceptions.HTTPFound('http://foo')`` rather than ``return pyramid.httpexceptions.HTTPFound(location='http//foo')`` (the latter will of course continue to work). --- CHANGES.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 9a25a6b04..dd3673173 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -371,6 +371,15 @@ Backwards Incompatibilities it is basically intended to directly mirror the ``webob.Response`` API, which has many methods and attributes. +- The ``pyramid.httpexceptions`` classes named ``HTTPFound``, + ``HTTPMultipleChoices``, ``HTTPMovedPermanently``, ``HTTPSeeOther``, + ``HTTPUseProxy``, and ``HTTPTemporaryRedirect`` now accept ``location`` as + their first positional argument rather than ``detail``. This means that + you can do, e.g. ``return pyramid.httpexceptions.HTTPFound('http://foo')`` + rather than ``return + pyramid.httpexceptions.HTTPFound(location='http//foo')`` (the latter will + of course continue to work). + Dependencies ------------ -- cgit v1.2.3