summaryrefslogtreecommitdiff
path: root/docs/narr/views.rst
AgeCommit message (Collapse)Author
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.
2011-01-19handlers are no longer a part of the packageChris McDonough
2011-01-17fix merge conflictCasey Duncan
2011-01-16- The ``pylons_minimal``, ``pylons_basic`` and ``pylons_sqla`` pasterChris McDonough
templates were removed. Use ``pyramid_sqla`` (available from PyPI) as a generic replacement for Pylons-esque development. - All references to ``add_handler`` and the ``handler`` ZCML directive have been removed from the docs, and stubs which point to ``pylons_handlers`` package have replaced them.
2011-01-15break out handlers into their own chapt once moreCasey Duncan
2011-01-08fix renderingsChris McDonough
2011-01-07- Allow ``decorator`` and ``mapper`` arguments to view ZCML directive.Chris McDonough
- Document ``decorator`` and ``mapper`` arguments in various places.
2011-01-02Split view chapter, move view config after templates, some reordering in ↵Casey Duncan
view config
2011-01-02rework paragraph about view callable return values and the possibility of ↵Casey Duncan
renderers
2011-01-02rework view callables introCasey Duncan
2011-01-02add word chaptersCasey Duncan
2010-12-31Remove resource location chapter and move intro parts to url dispatch. The ↵Casey Duncan
new much ado about traversal chapter takes care of selling traversal now
2010-12-22remove redundantJamaludin Ahmad
2010-12-21get rid of non-sequiturChris McDonough
2010-12-20fix typoChris McDonough
2010-12-19typoChris McDonough
2010-12-19adjust views chapter to better describe handlers as view classes which ↵Chris McDonough
happen to be registered using add_handler, gardening
2010-12-19Merge branch 'jahmad-typos'Chris McDonough
2010-12-19merge handlers chapter into views chapterChris McDonough
2010-12-20BFG_ -> PYRAMID_Jamaludin Ahmad
2010-12-19- Split off "Renderers" as its own chapter from "Views" chapter in narrativeChris McDonough
documentation.
2010-12-19context finding -> resource locationChris McDonough
2010-12-18Merge branch 'model2resource'Chris McDonough
Conflicts: docs/narr/views.rst
2010-12-18model -> resource; resource -> assetChris McDonough
2010-12-17get rid of conflict markerChris McDonough
2010-12-12fix merge conflictsCasey Duncan
2010-12-09fix docs: pyramid.configuration -> pyramid.configChris McDonough
2010-12-05add commaCasey Duncan
2010-12-05minor simplificationCasey Duncan
2010-12-05change a to theCasey Duncan
2010-12-05XXX change authentication policy to authorization policy. Confirm this is ↵Casey Duncan
correct XXX