summaryrefslogtreecommitdiff
path: root/docs/narr/views.rst
AgeCommit message (Collapse)Author
2018-11-20grammar fixesSteve Piercy
2018-11-19rip out moar unicode prefixesMichael Merickel
2018-08-21Merge pull request #3330 from stevepiercy/docs-code-styleMichael Merickel
Docs code style
2018-08-19Fix broken links from linkcheck, exclude localhost from checkSteve Piercy
2018-08-18Clean up code-blocks in viewsSteve Piercy
2017-01-28Minor changeJohn Jimenez
"functions, classes or any callable that accept" was messing with the flow while reading. Proposed change flows a little better for me. (cherry picked from commit 87d8aba)
2017-01-28Minor changeJohn Jimenez
distinguish between Pyramid itself and view code raising the exception as in previous exception listing. (cherry picked from commit eb166fb)
2017-01-27Minor changeJohn Jimenez
minor change to flow better (cherry picked from commit 0c705c9)
2016-09-29Clean up docstrings/narr docs from PR #2660Steve Piercy
- Closes #2768
2016-09-28derive exception views separately from normal viewsMichael Merickel
- previously the multiview was shared for both exception and hot-route, but now that we allow some exception-only views this needed to be separated - add ViewDeriverInfo.exception_only to detect exception views - do not prevent http_cache on exception views - optimize secured_view and csrf_view derivers to remove themselves from the view pipeline for exception views
2015-10-09minor grammar, wrap 79 colsSteve Piercy
2013-11-17Removed extra indentation from some examples (:linenos: should be indented ↵Antti Haapala
with the same indentation as the rest of the code block)
2013-04-01fix some cross-referencesTshepang Lekhonkhobe
2013-03-12Merge pull request #890 from tshepang/miscMichael Merickel
miscellaneous doc improvements
2013-03-12fix whitespace issue... remove tabsTshepang Lekhonkhobe
2013-03-06a touch of consistencyTshepang Lekhonkhobe
2013-03-06uncapitalizeTshepang Lekhonkhobe
2013-03-05we want 4-space indentsTshepang Lekhonkhobe
2013-03-05add missing word, add a :term: role where it was missing, improve readabilityTshepang Lekhonkhobe
2013-03-03Merge pull request #869 from tshepang/aestheticsTres Seaver
fix grammar, and remove repetition
2013-02-23make easier on the eyesTshepang Lekhonkhobe
Also fixes grammar, and removes repetition.
2013-02-23simplify sentence and fix its grammarTshepang Lekhonkhobe
2013-01-30use the more appropriate directivesTshepang Lekhonkhobe
2013-01-02eliminate other repeated wordsTshepang Lekhonkhobe
2012-09-16make use_tweens=False the defaultChris McDonough
2012-08-23Fixed typo in docs/narr/views.rstRonan Amicel
2012-04-02removed strange text that showed upDavid Gay
2012-04-02Merge branch 'master' of github.com:oddshocks/pyramidDavid Gay
Conflicts: docs/narr/views.rst
2012-04-02addressed #327David Gay
2012-04-02addressed #327David Gay
2012-03-02Correct minor grammatical error.Martijn Pieters
2012-02-07Minor documentation fix.Jens Rantil
Correcting a noun; 'a' => 'an', since __call__ starts with a consonant.
2012-01-25Minor change - remove duplicated worddavidjb
2011-07-20- Reordered chapters in narrative section for better new user friendliness.Chris McDonough
- Added more indexing markers to sections in documentation.
2011-07-20add more index markersChris McDonough
2011-07-11move mention of controllers to endChris McDonough
2011-07-11Merge branch 'master' of github.com:Pylons/pyramidChris McDonough
2011-07-11move alternate calling convention to chapter bottom; fix referenceChris McDonough
2011-07-10Modified docs to reference webob's new website.Michael Merickel
2011-06-20responsecode -> exception_responseChris 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-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-05-31the canonical import location for HTTP exceptions/responses is now ↵Chris McDonough
pyramid.response
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-03-29fixed typocguardia
2011-02-05fix conflictsChris McDonough
2011-01-27module name contractionsChris McDonough
2011-01-27First batch of fixes for typo's and other language issues.Chris Beelby
2011-01-21- Move content of "Forms" chapter back to "Views" chapter; I can't think of aChris McDonough
better place to put it.