summaryrefslogtreecommitdiff
path: root/docs
AgeCommit message (Collapse)Author
2011-06-14merge httpexception-utils branchChris McDonough
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-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-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-07Fix for issue 208.Carlos de la Guardia
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-06Small fix in code for Wiki2 tutorial in the view chapter.Christoph Zwerschke
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
2011-06-04- It is now possible to control how the Pyramid router calls the WSGIChris McDonough
``start_response`` callable and obtains the WSGI ``app_iter`` based on adapting the response object to the new ``pyramid.interfaces.IResponder`` interface. The default ``IResponder`` uses Pyramid 1.0's logic to do this. To override the responder:: from pyramid.interfaces import IResponder from pyramid.response import Response from myapp import MyResponder config.registry.registerAdapter(MyResponder, (Response,), IResponder, name='') This makes it possible to reuse response object implementations which have, for example, their own ``__call__`` expected to be used as a WSGI application (like ``pyramid.response.Response``), e.g.: class MyResponder(object): def __init__(self, response): """ Obtain a reference to the response """ self.response = response def __call__(self, request, start_response): """ Call start_response and return an app_iter """ app_iter = self.response(request.environ, start_response) return app_iter
2011-06-04remove stray -iChris McDonough
2011-06-03fix renderingChris McDonough
2011-06-03minor edits to cito's editsChris McDonough
2011-06-03Some more small fixes in the narrative docu.Christoph Zwerschke
2011-06-03Minor fixes in the Renderers docu.Christoph Zwerschke
2011-06-03Fixed quote chars.Christoph Zwerschke
2011-06-02Some typos, better quoting in Traversal docs.Christoph Zwerschke
2011-06-02Fix wrong parameter name.Christoph Zwerschke
2011-05-31broke this in the last commitChris McDonough
2011-05-31the canonical import location for HTTP exceptions/responses is now ↵Chris McDonough
pyramid.response
2011-05-30Sync Adding Authorization on both wiki tutorialsPatricio Paez
2011-05-30Improvements to Adding Authorization of the wiki tutorialsPatricio Paez
2011-05-30add design defense entry for simpler traversalChris McDonough
2011-05-27Attempt to fix issue #193 by setting mako default filter to 'h'.Michael Merickel
2011-05-26Fix typo to close issue 196.Carlos de la Guardia
2011-05-25add notifications for new featureChris McDonough
2011-05-25Added a simple session-based authentication policy.Michael Merickel
2011-05-16typoChris McDonough
2011-05-16- Added API docs for ``pyramid.httpexceptions.abort`` andChris McDonough
``pyramid.httpexceptions.redirect``. - Added "HTTP Exceptions" section to Views narrative chapter including a description of ``pyramid.httpexceptions.abort``; adjusted redirect section to note ``pyramid.httpexceptions.redirect``. - A default exception view for the context ``webob.exc.HTTPException`` (aka ``pyramid.httpexceptions.HTTPException``) is now registered by default. This means that an instance of any exception class imported from ``pyramid.httpexceptions`` (such as ``HTTPFound``) can now be raised from within view code; when raised, this exception view will render the exception to a response. - New functions named ``pyramid.httpexceptions.abort`` and ``pyramid.httpexceptions.redirect`` perform the equivalent of their Pylons brethren when an HTTP exception handler is registered. These functions take advantage of the newly registered exception view for ``webob.exc.HTTPException``. - The Configurator now accepts an additional keyword argument named ``httpexception_view``. By default, this argument is populated with a default exception view function that will be used when an HTTP exception is raised. When ``None`` is passed for this value, an exception view for HTTP exceptions will not be registered. Passing ``None`` returns the behavior of raising an HTTP exception to that of Pyramid 1.0 (the exception will propagate to middleware and to the WSGI server).
2011-05-14template -> scaffoldChris McDonough
2011-05-14Merge branch 'master' of github.com:Pylons/pyramidChris McDonough
2011-05-14add 'What's new In Pyramid 1.1' documentChris McDonough
2011-05-14Correct spelling of my nameWichert Akkerman
2011-05-14applied some of the suggestions from issue #189. closes #189Chris McDonough
2011-05-14use lingua in docs (thanks to wichert)Chris McDonough
2011-05-13- The ``add_route`` method of the Configurator now accepts a ``static``Chris McDonough
argument. If this argument is ``True``, the added route will never be considered for matching when a request is handled. Instead, it will only be useful for URL generation via ``route_url`` and ``route_path``. See the section entitled "Static Routes" in the URL Dispatch narrative chapter for more information.
2011-05-13- Added documentation for a "multidict" (e.g. the API of ``request.POST``) asChris McDonough
interface API documentation.
2011-05-05Fixed some line numbers in the docs.Michael Merickel
2011-05-05Fixed a bug in the wiki2/auth tutorial.Michael Merickel
2011-05-04Revert "test adding theme as a submodule"cguardia
This reverts commit 94c2dc0bae9cf14cc6a5548119933e4477d07042.
2011-05-04Revert "fixed makefile to update theme submodule correctly"cguardia
This reverts commit f2d5cb59deba682d7c1d461ab5e90ba1802d42ac.
2011-05-04code refactoring for showing route->view relationship more correctly; tests ↵cguardia
and docs for pull request
2011-04-27Merge branch 'master' of https://github.com/Pylons/pyramidcguardia
2011-04-25spell it out entirelyChris McDonough
2011-04-25Merge branch 'master' of https://github.com/Pylons/pyramidcguardia
2011-04-24Merge branch 'zodb-tutorial-test-reorg' of https://github.com/ppaez/pyramid ↵Chris McDonough
into ppaez-zodb-tutorial-test-reorg
2011-04-24Merge branch 'master' of https://github.com/jdnavarro/pyramid into ↵Chris McDonough
jdnavarro-master
2011-04-24fix rendering issueChris McDonough