diff options
Diffstat (limited to 'docs/tutorials/bfgwiki/basiclayout.rst')
| -rw-r--r-- | docs/tutorials/bfgwiki/basiclayout.rst | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/tutorials/bfgwiki/basiclayout.rst b/docs/tutorials/bfgwiki/basiclayout.rst index 213f238fd..c2b2ebd4b 100644 --- a/docs/tutorials/bfgwiki/basiclayout.rst +++ b/docs/tutorials/bfgwiki/basiclayout.rst @@ -106,32 +106,32 @@ function within the file named ``run.py``: :linenos: :language: py -#. *Lines 1-3*. Perform some dependency imports. +#. *Lines 1-2*. Perform some dependency imports. -#. *Line 11*. Get the ZODB configuration from the ``tutorial.ini`` +#. *Line 12*. Get the ZODB configuration from the ``tutorial.ini`` file's ``[app:main]`` section represented by the ``settings`` dictionary passed to our ``app`` function. This will be a URI (something like ``file:///path/to/Data.fs``). -#. *Line 14*. We create a "finder" object using the +#. *Line 15*. We create a "finder" object using the ``PersistentApplicationFinder`` helper class, passing it the ZODB URI and the "appmaker" we've imported from ``models.py``. -#. *Lines 15 - 16*. We create a :term:`root factory` which uses the +#. *Lines 16 - 17*. We create a :term:`root factory` which uses the finder to return a ZODB root object. -#. *Line 17*. We construct a :term:`Configurator` with a :term:`root +#. *Line 18*. We construct a :term:`Configurator` with a :term:`root factory` and the settings keywords parsed by PasteDeploy. The root factory is named ``get_root``. -#. *Lines 18-20*. Begin configuration using the ``begin`` method of +#. *Lines 19-21*. Begin configuration using the ``begin`` method of the :meth:`repoze.bfg.configuration.Configurator` class, load the ``configure.zcml`` file from our package using the :meth:`repoze.bfg.configuration.Configurator.load_zcml` method, and end configuration using the :meth:`repoze.bfg.configuration.Configurator.end` method. -#. *Line 21*. Use the +#. *Line 22*. Use the :meth:`repoze.bfg.configuration.Configurator.make_wsgi_app` method to return a :term:`WSGI` application. |
