summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2/definingviews.rst
AgeCommit message (Collapse)Author
2012-12-01Sync __init__.py in SQL wiki tutorialPatricio Paez
- Update lines and emphasized-lines - No line numbers if only a single line
2012-11-30tutorials/wiki2/definingviews.rst: Change example error page fromMarc Abramowitz
http://localhost:6543/add_page to http://localhost:6543/foobar/edit_page For me, the former generates "404 Not Found" (probably because it doesn't match a route) while the latter gives "sqlalchemy.orm.exc.NoResultFound" and the nice traceback from Werkzeug.
2012-11-30A bunch of minor tweaks to the wiki2 tutorial in docs/tutorials/wiki2Marc Abramowitz
2012-09-22- Add ``Base.metadata.bind = engine`` to alchemy template, so that tablesChris McDonough
defined imperatively will work. - update wiki2 SQLA tutorial with the changes required after inserting ``Base.metadata.bind = engine`` into the alchemy scaffold.
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-17Merge pull request #496 from douglatornell/sql-tut-editsChris McDonough
Improve text of SQLAlchemy wiki tutorial.
2012-03-17Improve text of SQLAlchemy wiki tutorial.Doug Latornell
A mixture of typo fixes and wording improvements.
2012-03-17master->1.3-branchChris McDonough
2012-03-13Wording improvements to Defining Views section of tutorial.Audrey Roy
2012-03-13Wording improvements to Defining Views section of tutorial.Audrey Roy
2012-03-12Clarify two steps in the SQL wiki tutorialPatricio Paez
- Highlight the added or changed lines
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.
2012-02-14- Don't create a ``session`` instance in SQLA Wiki tutorial, use rawChris McDonough
``DBSession`` instead (this is more common in real SQLA apps).
2012-01-29show decorators along with view callables, fixes #393Chris McDonough
2011-11-27- The SQLAlchemy Wiki tutorial has been updated. It now usesChris McDonough
``@view_config`` decorators and an explicit database population script. Closes #359.
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-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-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-05-31the canonical import location for HTTP exceptions/responses is now ↵Chris McDonough
pyramid.response
2011-04-22- Make sure deprecation warnings aren't raised when tests are run.Chris McDonough
- Modify documentation for cross-referencing. - Use add_view(viewname) syntax rather than add_view(view=viewname) syntax for normalization. - Use warnings.warn rather than zope.deprecated in order to make testing easier. - Move tests which test deprecated methods of configurator to a separate test case.
2011-04-20Upgraded the url dispatch tutorials to use add_view.Michael Merickel
2011-03-31Fix typos in the tutorialsPatricio Paez
2011-03-20review changes to sqla tutorialChris McDonough
2011-03-15Restructured the routes wiki tutorial to make it easier to follow along. ↵Carlos de la Guardia
Moved the routes tutorial above the traversal tutorial.
2011-02-16fix tutorial wordingChris McDonough
2011-02-15fixed typo in docs in wiki2 tutorialŁukasz Fidosz
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-09fix docs: pyramid.configuration -> pyramid.configChris McDonough
2010-11-20convert stray references to colon routing syntax to squiggly syntaxChris McDonough
2010-11-11- SQLAlchemy+urldispach wiki (``wiki2``) tutorial updated due to changes toChris McDonough
``pyramid_routesalchemy`` paster template.
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)
2010-11-07Fix file type for literalinclude.Marius Gedminas
2010-11-04- Move static dir from pkg/templates/ to /pkg/ in pyramid_* paster templates.Chris McDonough
2010-11-04- The SQL Wiki tutorial was updated to take into account changes to theChris McDonough
``pyramid_routesalchemy`` paster template.
2010-10-25add httpexceptions docsChris McDonough
2010-10-25adjust wiki2 tutorial for pyramidChris McDonough