summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2
AgeCommit message (Collapse)Author
2011-07-12- The ``pyramid_routesalchemy`` and ``pyramid_alchemy`` scaffoldsChris McDonough
inappropriately used ``DBSession.rollback()`` instead of ``transaction.abort()`` in one place. - Wiki2 (SQLAlchemy + URL Dispatch) tutorial ``models.initialize_sql`` didn't match the ``pyramid_routesalchemy`` scaffold function of the same name; it didn't get synchronized when it was changed in the scaffold.
2011-07-02remove male pronounChris McDonough
2011-07-01run setup.py developChris McDonough
2011-07-01use assertEqualChris McDonough
2011-07-01- The Wiki2 tutorial "Tests" chapter had two bugs: it did not tell the userChris McDonough
to depend on WebTest, and 2 tests failed as the result of changes to Pyramid itself. These issues have been fixed.
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-07removed test that fails because of a known problem in Pyramid 1.0Carlos 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-04remove stray -iChris 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-05Fixed some line numbers in the docs.Michael Merickel
2011-05-05Fixed a bug in the wiki2/auth tutorial.Michael Merickel
2011-04-22fix merge conflictsChris McDonough
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-20Fixed typos and added clarifications in a tutorialKirk Strauser
I was working through the wiki2 tutorial this morning and found some slightly confusing bits. As I went along, I added the suggested changes to my local files to make them match the tutorial's version, but found several times that key parts were missing. I'm not new to Python so this didn't slow me down, but thought some clarifications might help new users.
2011-04-20Upgraded the url dispatch tutorials to use add_view.Michael Merickel
2011-04-10Wrong attribute name; closes #146.Chris McDonough
2011-03-31Fix typos in the tutorialsPatricio Paez
2011-03-24It was decided that pyramid would undergo a terminology change.Joe Dallago
'Paster templates' will now be refered to as 'scaffolds,' while 'rendered templates' will remain as 'templates.' I have changed the docs to reflect this change in terminology.
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-03-02Closes #128Chris McDonough
2011-02-23mirror virhilo's changes to views tutorial package in authorization stepChris McDonough
2011-02-23normalized test cases in wiki2 tutorialŁukasz Fidosz
2011-02-16fix tutorial wordingChris McDonough
2011-02-15fixed typo in docs in wiki2 tutorialŁukasz Fidosz
2011-01-30had to remove flow of auth chapter due to space constraintsChris McDonough
2011-01-30fix too-long linesChris McDonough
2011-01-30fix too-long linesChris McDonough
2011-01-29Merge branch 'master' of https://github.com/osmaker/pyramid into osmaker-masterChris McDonough
2011-01-29fix too-long lines in tutorialsChris McDonough
2011-01-28minor grammar fixes ('a' vs 'an')Kyle Johnson
2011-01-28dont use tab-width directive (older sphinx does not support, need to build ↵Chris McDonough
book with older sphinx)
2011-01-28convert all tabs to spaces in templates (sorry, blaise, i may have to use an ↵Chris McDonough
older version of sphinx which doesnt respect tab-width)
2011-01-25- Use © instead of copyright symbol in paster templates / tutorialChris McDonough
templates for the benefit of folks who cutnpaste and save to a non-UTF8 format.
2011-01-22- The ``production.ini`` generated by all paster templates now have anChris McDonough
effective logging level of WARN, which prevents e.g. SQLAlchemy statement logging and other inappropriate output. - The ``production.ini`` of the ``pyramid_routesalchemy`` and ``pyramid_alchemy`` paster templates did not have a ``sqlalchemy`` logger section, preventing ``paster serve production.ini`` from working. - The ``pyramid_routesalchemy`` and ``pyramid_alchemy`` paster templates used the ``{{package}}`` variable in a place where it should have used the ``{{project}}`` variable, causing applications created with uppercase letters e.g. ``paster create -t pyramid_routesalchemy Dibbus`` to fail to start when ``paster serve development.ini`` was used against the result. See https://github.com/Pylons/pyramid/issues/#issue/107 Closes #107
2011-01-21include txt, mako, xml, htmlChris McDonough
2011-01-21- Add a ``MANIFEST.in`` file to each paster template. SeeChris McDonough
https://github.com/Pylons/pyramid/issues#issue/95 Closes issue #95.
2011-01-21remove descriptions from titlesChris McDonough
2011-01-21deal with the addition of production.iniChris McDonough
2011-01-19adjust wiki2 tutorial based on changes to pyramid_routesalchemy templateChris McDonough
2011-01-15credit john shipman appropriatelyChris McDonough
2011-01-15Merge branch 'longlines' of git://github.com/johnwshipman/pyramidBlaise Laflamme
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)