| Age | Commit message (Collapse) | Author |
|
A mixture of typo fixes and wording improvements.
|
|
|
|
|
|
- Replaced populate_tutorial -> initialize_tutorial_db
- Renamed populate.py -> initializedb.py
- Updated references in the documenation
|
|
- Removed the main() settings parameter in populate.py
- Updated the Tests chapter
|
|
|
|
- Removed the Context column
- Swapped Action and View columns
|
|
|
|
|
|
shentonfreude/shentonfreude/bug.sqltut-test-populate-settings
Shentonfreude/bug.sqltut test populate settings
|
|
shentonfreude/bug.sqltut-test-populate-settings
|
|
The text didn't describe editing the populate.py to accept an optional
``settings`` argument, which _callFUT() in tests.py passed in. This is
used to specify a memory-backed SQLite DB which we can wipe-n-load
during testing.
Show how to replace main() in populate.py per our source code to
accept this argument, and use it to set the DB URI; it also uses our
Page model.
|
|
- Highlighted the added lines in the listings
- Simplified 'Viewing the application in a browser' and
added link to Starting the application
|
|
|
|
- Added a summary of the steps
- Fixed a couple of typos
|
|
Clarify two steps in the SQL wiki tutorial
|
|
highlighted it.
|
|
- Highlight the added or changed lines
|
|
|
|
models.py.
|
|
Added links to 'Starting the Application'
|
|
|
|
- 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.
|
|
|
|
wrapper for ``pyramid.Config.configurator.add_view`` which does the right
thing about permissions. It should be preferred over calling ``add_view``
directly with ``context=HTTPForbidden`` as was previously recommended.
- New API: ``pyramid.view.forbidden_view_config``. This is a decorator
constructor like ``pyramid.view.view_config`` that calls
``pyramid.config.Configurator.add_forbidden_view`` when scanned. It should
be preferred over using ``pyramid.view.view_config`` with
``context=HTTPForbidden`` as was previously recommended.
- Updated the "Creating a Not Forbidden View" section of the "Hooks" chapter,
replacing explanations of registering a view using ``add_view`` or
``view_config`` with ones using ``add_forbidden_view`` or
``forbidden_view_config``.
- Updated all tutorials to use ``pyramid.view.forbidden_view_config`` rather
than ``pyramid.view.view_config`` with an HTTPForbidden context.
|
|
lines in order to be able to tell people to comment out only the
``pyramid_debugtoolbar`` line when they want to disable the toolbar.
|
|
``DBSession`` instead (this is more common in real SQLA apps).
|
|
|
|
|
|
issue #398)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
docs. It survives on in the Cookbook
(http://docs.pylonsproject.org/projects/pyramid_cookbook/en/latest/gae.html).
Rationale: it provides the correct info for the Python 2.5 version of GAE
only, and this version of Pyramid does not support Python 2.5.
|
|
|
|
``@view_config`` decorators and an explicit database population script.
Closes #359.
|
|
rendering; emit logging statements when populate is run
|
|
from ``scan``).
|
|
- The ``routesalchemy`` scaffold has been renamed ``alchemy``.
|
|
|
|
various tutorial changes by Ken Manheimer
|
|
|
|
package to relative ones, to reduce brittleness, eg when the user names the
package something other than 'tutorial'.
- make imports relative
- use plain relative URLs for resources (like stylesheets and images) in
page templates.
This is the last batch of this kind of change that I know about. I've
exercised the changes (via the browser and the test target) in a package
with an alternate name, 'zodbtutorial', as well as in a package with the
default name, 'tutorial'.
|
|
change substitute the package name they used with 'tutorial'.
|
|
|
|
package to relative ones, to reduce brittleness, eg when the user names the
package something other than 'tutorial'.
- make imports relative
- use plain relative URLs for resources (like stylesheets and images) in
page templates.
|