summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki/definingviews.rst
AgeCommit message (Collapse)Author
2017-06-10synch emphasize-lines with src files for zodb wiki tutorialSteve Piercy
2016-12-23replace pcreate w/ccSteve Piercy
2016-12-23Use cookiecutter instead of scaffold and pcreateSteve Piercy
- minor grammar and reST fixes
2016-12-18Fix typoPavlo Kapyshin
2016-12-06Changed wiki tutorial to showcase passwrd hashing with bcrypt. Relates to #2204Martin
2016-04-16replace ps1con with doscon for lexerSteve Piercy
2016-04-10- update definingviews and its src filesSteve Piercy
- fix css in zodb scaffold and wiki tutorial previous steps
2016-04-09- fix traversal tutorial referenceSteve Piercy
- add intersphinx targets to wiki/*
2015-05-27- clean up and make consistent across wiki tutorialsSteve Piercy
- update templates and static assets for new design
2015-05-26- clean up and make defininingviews consistent between two wiki tutorialsSteve Piercy
- sort imports to be consistent with scaffold setup.py - update templates, static assets
2013-09-06fix some more broken referencesMichael Merickel
2013-03-05update some links and fix othersTshepang Lekhonkhobe
2013-01-24Add source code snippets to supply context for the narrative.Steve Piercy
2013-01-20point to the sources of the wiki tutorials in just one location; fix #763Tshepang Lekhonkhobe
* This avoids having to update the link multiple times. * Also, mention their location, in case user has Pyramid checkout.
2013-01-02eliminate other repeated wordsTshepang Lekhonkhobe
2012-08-04add quotes for clarityDaniel Haaker
2012-04-16Normalize and update the last sectionPatricio Paez
2012-04-13Simplify the introductionPatricio Paez
- Moved the selection of the templates to the Design chapter - Improved the Views section in the Design chapter - Normalize in both tutorials
2012-04-12Improve the Adding Templates section in both tutorialsPatricio Paez
- As suggested by Paulo in the PyCon sprint
2012-03-17master->1.3-branchChris McDonough
2012-03-12Added links to Starting the ApplicationPatricio Paez
- Sections 'Viewing the Application in a Browser' in the 'Defining the Domain Model' and 'Defining the Views' chapters now offer a quick link in both wiki tutorials, as suggested by Paulo.
2011-11-18- Fix ZODB tutorial docs to match ZODB tutorial code (I removed program nameChris McDonough
from ``scan``).
2011-11-08No longer using request.static_url() in the demos.kenmanheimer
2011-10-06remove all reference to the paster command-line utilityChris McDonough
2011-09-23fixed up all the warning dealing ..note and ..warnmichr
added a hide toc for glossary to prevent warnings
2011-08-14- All tutorials now use - The ``route_url``, ``route_path``,Chris McDonough
``resource_url``, ``static_url``, and ``current_route_url`` methods of the request rather than the function variants imported from ``pyramid.url``.
2011-08-13- Projects created via a scaffold no longer depend on the ``WebError``Chris McDonough
package at all; configuration in the ``production.ini`` file which used to require its ``error_catcher`` middleware has been removed. Configuring error catching / email sending is now the domain of the ``pyramid_exclog`` package (see https://docs.pylonsproject.org/projects/pyramid_exclog/dev/).
2011-06-14merge httpexception-utils branchChris 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-06-05More small fixes made reading the rest of the docs and the tutorials.Christoph Zwerschke
2011-05-31the canonical import location for HTTP exceptions/responses is now ↵Chris McDonough
pyramid.response
2011-04-20Adding Tests in the ZODB wiki tutorialPatricio Paez
- New section in the main index - Move Model and View tests there - Added Functional tests
2011-03-31Move Viewing the Application in a Browser upPatricio Paez
2011-03-31Fix typos in the tutorialsPatricio Paez
2011-03-31Sync the Defining Views intro with the SQLAlchemy tutorialPatricio Paez
2011-03-31Sync note with SQLAlchemy tutorialPatricio Paez
2011-03-30Sync Declaring Dependencies with the SQLAlchemy tutorialPatricio Paez
2011-03-30Move the Declaring Dependencies topic to the Defining Views sectionPatricio Paez
2011-01-30Typo - "tutorial.models.Wiki" should be "tutorial.models.Page"Claus Conrad
2011-01-28dont use tab-width directive (older sphinx does not support, need to build ↵Chris McDonough
book with older sphinx)
2011-01-15General reformatting of the wiki and wiki2 tutorials to eliminateJohn Shipman
any overly long lines in the PDF rendering. Changes to .rst files: (docs/tutorials/wiki/authorization.rst) (docs/tutorials/wiki/definingviews.rst) (docs/tutorials/wiki2/authorization.rst) (docs/tutorials/wiki2/definingviews.rst) 1. For included templates, added :tab-width: 2 options. 2. wiki2/authorization.rst: Wrong markup for file names __init__.py and views.py just after the subhead "Adding security.py". Changes to .py files: Folded a few long lines. (docs/tutorials/wiki/src/basiclayout/tutorial/views.py) (docs/tutorials/wiki/src/authorization/tutorial/views.py) (docs/tutorials/wiki/src/views/tutorial/views.py) (docs/tutorials/wiki2/src/basiclayout/tutorial/models.py) (docs/tutorials/wiki2/src/models/tutorial/models.py) Changes to .pt files: Broke long lines; reformatted for 2-space indentation using tabs. (docs/tutorials/wiki/src/authorization/tutorial/templates/edit.pt) (docs/tutorials/wiki/src/authorization/tutorial/templates/login.pt) (docs/tutorials/wiki/src/authorization/tutorial/templates/view.pt) (docs/tutorials/wiki/src/views/tutorial/templates/edit.pt) (docs/tutorials/wiki/src/views/tutorial/templates/view.pt) (docs/tutorials/wiki2/src/authorization/tutorial/templates/edit.pt) (docs/tutorials/wiki2/src/authorization/tutorial/templates/login.pt) (docs/tutorials/wiki2/src/authorization/tutorial/templates/view.pt) (docs/tutorials/wiki2/src/views/tutorial/templates/edit.pt) (docs/tutorials/wiki2/src/views/tutorial/templates/view.pt)
2011-01-06Updated wiki tutorial docsBlaise Laflamme
2010-12-23tutorial accuracy and wording improvementsChris McDonough
2010-12-23fix awkward wordingChris McDonough
2010-12-23fix referencesChris McDonough
2010-12-22- The ``pyramid_zodb`` Paster template no longer employs ZCML. Instead, itChris McDonough
is based on scanning. - Changed the "ZODB + Traversal Wiki Tutorial" based on changes to ``pyramid_zodb`` Paster template.
2010-12-18resource/asset normalizationChris McDonough
2010-12-15- If you followed it to-the-letter, the ZODB+Traversal Wiki tutorial wouldChris McDonough
instruct you to run a test which would fail because the view callable generated by the ``pyramid_zodb`` tutorial used a one-arg view callable, but the test in the sample code used a two-arg call. - Updated ZODB+Traversal tutorial setup.py of all steps to match what's generated by ``pyramid_zodb``.
2010-11-09- All references to Pyramid-the-application were changed from :mod:`pyramid`Chris McDonough
to :app:`Pyramid`. A custom role setting was added to ``docs/conf.py`` to allow for this. (internal)