summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki/basiclayout.rst
diff options
context:
space:
mode:
authorSteve Piercy <web@stevepiercy.com>2018-11-23 18:42:18 -0800
committerSteve Piercy <web@stevepiercy.com>2018-11-23 18:42:18 -0800
commit28f659844f0f3520a8bedf4d318970b039bf9734 (patch)
treecbbe487f83995e827f504c48aaee82c453aabbb7 /docs/tutorials/wiki/basiclayout.rst
parentdd2aefc04435b65d67163c432409b4f76685b93a (diff)
downloadpyramid-28f659844f0f3520a8bedf4d318970b039bf9734.tar.gz
pyramid-28f659844f0f3520a8bedf4d318970b039bf9734.tar.bz2
pyramid-28f659844f0f3520a8bedf4d318970b039bf9734.zip
Remove redundancy in appmaker narrative
Diffstat (limited to 'docs/tutorials/wiki/basiclayout.rst')
-rw-r--r--docs/tutorials/wiki/basiclayout.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/tutorials/wiki/basiclayout.rst b/docs/tutorials/wiki/basiclayout.rst
index 7e6e86143..39e15bb58 100644
--- a/docs/tutorials/wiki/basiclayout.rst
+++ b/docs/tutorials/wiki/basiclayout.rst
@@ -174,12 +174,12 @@ Here is the source for ``models.py``:
#. *Lines 8-12*.
``appmaker`` is used to return the *application root* object.
- It is called on *every request* to the :app:`Pyramid` application.
+ It is called on *every request* to the :app:`Pyramid` application by virtue of the ``root_factory`` defined in our ``__init__.py``.
It also performs bootstrapping by *creating* an application root (inside the ZODB root object) if one does not already exist.
- It is used by the ``root_factory`` we have defined in our ``__init__.py``.
-
+
Bootstrapping is done by first seeing if the database has the persistent application root.
If not, then we make an instance, store it, and commit the transaction.
+
We then return the application root object.