summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-06-21Merge pull request #215 from mmerickel/fix.template_deprecationChris McDonough
Fixed a bw-compat issue with PyramidTemplate being moved.
2011-06-21Fixed a bw-compat issue with PyramidTemplate being moved.Michael Merickel
2011-06-21avoid some getattrsChris McDonough
2011-06-21Merge branch 'master' of github.com:Pylons/pyramidChris McDonough
2011-06-21- The pyramid Router attempted to set a value into the keyChris McDonough
``environ['repoze.bfg.message']`` when it caught a view-related exception for backwards compatibility with :mod:`repoze.bfg` during error handling. It did this by using code that looked like so:: # "why" is an exception object try: msg = why[0] except: msg = '' environ['repoze.bfg.message'] = msg Use of the value ``environ['repoze.bfg.message']`` was docs-deprecated in Pyramid 1.0. Our standing policy is to not remove features after a deprecation for two full major releases, so this code was originally slated to be removed in Pyramid 1.2. However, computing the ``repoze.bfg.message`` value was the source of at least one bug found in the wild (https://github.com/Pylons/pyramid/issues/199), and there isn't a foolproof way to both preserve backwards compatibility and to fix the bug. Therefore, the code which sets the value has been removed in this release. Code in exception views which relies on this value's presence in the environment should now use the ``exception`` attribute of the request (e.g. ``request.exception[0]``) to retrieve the message instead of relying on ``request.environ['repoze.bfg.message']``. Closes #199.
2011-06-20corrected missing apostrophe and then extra apostropheCarlos de la Guardia
2011-06-20typoCarlos de la Guardia
2011-06-20Removed superfluous wordCarlos de la Guardia
2011-06-20prep for 1.1a1Chris McDonough
2011-06-20bring whatsnew up to dateChris McDonough
2011-06-20bring whatsnew up to dateChris McDonough
2011-06-20responsecode -> exception_responseChris McDonough
2011-06-20- Register the default exception view for context ofChris McDonough
webob.exc.WSGIHTTPException (convenience). - Use ``exc.message`` in docs rather than ``exc.args[0]`` now that we control this.
2011-06-20note backwards incompat related to ISettingsChris McDonough
2011-06-19- Copy exception templates from webob.exc into pyramid.httpexceptions andChris McDonough
ensure they all work.
2011-06-19failUnless -> assertTrue to appease the unittest naming nazisChris McDonough
2011-06-19coverageChris McDonough
2011-06-19- Base exception response content type again on accept header.Chris McDonough
- 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).
2011-06-19format deprecating warnings properlyChris McDonough
2011-06-18move defense from changes to design defense documentChris McDonough
2011-06-18fix renderingChris McDonough
2011-06-14we no longer support 2.4Chris McDonough
2011-06-14merge httpexception-utils branchChris McDonough
2011-06-14garden:Chris McDonough
2011-06-14- Move default app_iter generation logic into __call__ forChris McDonough
exception responses. - Add note about why we've created a shadow exception hierarchy parallel to that of webob.exc.
2011-06-14- New method named ``pyramid.request.Request.is_response``. This methodChris McDonough
should be used instead of the ``pyramid.view.is_response`` function, which has been deprecated. - Deprecated ``pyramid.view.is_response`` function in favor of (newly-added) ``pyramid.request.Request.is_response`` method. Determining if an object is truly a valid response object now requires access to the registry, which is only easily available as a request attribute. The ``pyramid.view.is_response`` function will still work until it is removed, but now may return an incorrect answer under some (very uncommon) circumstances.
2011-06-14- Added new add_response_adapter method to Configurator.Chris McDonough
- Fix Configurator docstring wrt exception responses. - Speed up registry.queryAdapterOrSelf
2011-06-13gardenChris McDonough
2011-06-13render nicer docsChris McDonough
2011-06-13flesh out IResponse interfaceChris McDonough
2011-06-13name argument makes no sense hereChris McDonough
2011-06-13- Remove IResponder abstraction in favor of more general IResponseChris McDonough
abstraction. - It is now possible to return an arbitrary object from a Pyramid view callable even if a renderer is not used, as long as a suitable adapter to ``pyramid.interfaces.IResponse`` is registered for the type of the returned object. See the section in the Hooks chapter of the documentation entitled "Changing How Pyramid Treats View Responses". - The Pyramid router now, by default, expects response objects returned from view callables to implement the ``pyramid.interfaces.IResponse`` interface. Unlike the Pyramid 1.0 version of this interface, objects which implement IResponse now must define a ``__call__`` method that accepts ``environ`` and ``start_response``, and which returns an ``app_iter`` iterable, among other things. Previously, it was possible to return any object which had the three WebOb ``app_iter``, ``headerlist``, and ``status`` attributes as a response, so this is a backwards incompatibility. It is possible to get backwards compatibility back by registering an adapter to IResponse from the type of object you're now returning from view callables. See the section in the Hooks chapter of the documentation entitled "Changing How Pyramid Treats View Responses". - The ``pyramid.interfaces.IResponse`` interface is now much more extensive. Previously it defined only ``app_iter``, ``status`` and ``headerlist``; now it is basically intended to directly mirror the ``webob.Response`` API, which has many methods and attributes. - Documentation changes to support above.
2011-06-11todoChris McDonough
2011-06-11Merge branch 'master' of github.com:Pylons/pyramidChris McDonough
2011-06-11todoChris McDonough
2011-06-11- Pyramid now expects Response objects to have a __call__Chris McDonough
method which implements the WSGI application interface instead of the three webob attrs status, headerlist and app_iter. Backwards compatibility exists for code which returns response objects that do not have a __call__. - pyramid.response.Response is no longer an exception (and therefore cannot be raised in order to generate a response). - Changed my mind about moving stuff from pyramid.httpexceptions to pyramid.response. The stuff I moved over has been moved back to pyramid.httpexceptions.
2011-06-07Merge pull request #209 from Cito/masterCarlos de la Guardia
Signed the contributor agreement.
2011-06-07Signed the contributor agreement.Christoph Zwerschke
2011-06-07Fix for issue 208.Carlos de la Guardia
2011-06-07Merge pull request #207 from wichert/masterChris McDonough
Language fallback support
2011-06-07removed test that fails because of a known problem in Pyramid 1.0Carlos de la Guardia
2011-06-07Merge remote branch 'cito/master'Carlos de la Guardia
2011-06-06Merge branch 'master' of github.com:Pylons/pyramidCarlos de la Guardia
2011-06-06Add support for language fallback.Wichert Akkerman
2011-06-06Merge pull request #205 from ppaez/masterChris McDonough
Fix "[Error 32] file being used by another process" in ZODB tutorial functional tests
2011-06-06Small fix in code for Wiki2 tutorial in the view chapter.Christoph Zwerschke
2011-06-05Allow empty zodb_uri in the ZODB+traversal scaffoldPatricio Paez
2011-06-05Make tests in the Wiki2 tutorial a separate chapter, as for Wiki1.Christoph Zwerschke
Also add functional tests to the Wiki2 tutorial, similar to Wiki1.
2011-06-05More small fixes made reading the rest of the docs and the tutorials.Christoph Zwerschke
2011-06-05Close zodb before removing in functional testsPatricio Paez