diff options
| author | Carlos de la Guardia <cguardia@yahoo.com> | 2011-11-10 19:34:49 -0800 |
|---|---|---|
| committer | Carlos de la Guardia <cguardia@yahoo.com> | 2011-11-10 19:34:49 -0800 |
| commit | 41de98e3287b8ddd457c24ea952839261b3b462f (patch) | |
| tree | 117cd5f89699c22bbb112bcf1a1d71b26037de15 /docs/tutorials/wiki/basiclayout.rst | |
| parent | 9da33516637075b5a41b2e8bf500297a4cb71166 (diff) | |
| parent | dc6eee99a27b21328b16ccc532a75f5529ccc189 (diff) | |
| download | pyramid-41de98e3287b8ddd457c24ea952839261b3b462f.tar.gz pyramid-41de98e3287b8ddd457c24ea952839261b3b462f.tar.bz2 pyramid-41de98e3287b8ddd457c24ea952839261b3b462f.zip | |
Merge pull request #350 from kenmanheimer/klm/docs.tutorial
various tutorial changes by Ken Manheimer
Diffstat (limited to 'docs/tutorials/wiki/basiclayout.rst')
| -rw-r--r-- | docs/tutorials/wiki/basiclayout.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/tutorials/wiki/basiclayout.rst b/docs/tutorials/wiki/basiclayout.rst index 311352f5b..897775428 100644 --- a/docs/tutorials/wiki/basiclayout.rst +++ b/docs/tutorials/wiki/basiclayout.rst @@ -2,7 +2,7 @@ Basic Layout ============ -The starter files generated by the ``pyramid_zodb`` scaffold are basic, but +The starter files generated by the ``zodb`` scaffold are basic, but they provide a good orientation for the high-level patterns common to most :term:`traversal` -based :app:`Pyramid` (and :term:`ZODB` based) projects. @@ -69,7 +69,7 @@ hierarchically in a :term:`resource tree`. This tree is consulted by tree represents the site structure, but it *also* represents the :term:`domain model` of the application, because each resource is a node stored persistently in a :term:`ZODB` database. The ``models.py`` file is -where the ``pyramid_zodb`` scaffold put the classes that implement our +where the ``zodb`` scaffold put the classes that implement our resource objects, each of which happens also to be a domain model object. Here is the source for ``models.py``: @@ -144,7 +144,7 @@ Let's try to understand the components in this module: #. *Lines 5-6*. We define a :term:`view callable` named ``my_view``, which we decorated in the step above. This view callable is a *function* we - write generated by the ``pyramid_zodb`` scaffold that is given a + write generated by the ``zodb`` scaffold that is given a ``request`` and which returns a dictionary. The ``mytemplate.pt`` :term:`renderer` named by the asset specification in the step above will convert this dictionary to a :term:`response` on our behalf. |
