diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-12-27 15:32:14 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-12-27 15:32:14 +0000 |
| commit | e4e3aa3449d3ae390402a9cead205626816a2938 (patch) | |
| tree | cdab3582902124055fedfb3d0320157c983638fe /docs/tutorials | |
| parent | 878328bdfc3b5ac832f1728e4a0461e3129cf8d4 (diff) | |
| download | pyramid-e4e3aa3449d3ae390402a9cead205626816a2938.tar.gz pyramid-e4e3aa3449d3ae390402a9cead205626816a2938.tar.bz2 pyramid-e4e3aa3449d3ae390402a9cead205626816a2938.zip | |
Rendering cleanups.
Diffstat (limited to 'docs/tutorials')
| -rw-r--r-- | docs/tutorials/bfgwiki/basiclayout.rst | 8 | ||||
| -rw-r--r-- | docs/tutorials/bfgwiki/installation.rst | 6 |
2 files changed, 8 insertions, 6 deletions
diff --git a/docs/tutorials/bfgwiki/basiclayout.rst b/docs/tutorials/bfgwiki/basiclayout.rst index 84f6e493e..a0fa2b924 100644 --- a/docs/tutorials/bfgwiki/basiclayout.rst +++ b/docs/tutorials/bfgwiki/basiclayout.rst @@ -109,7 +109,7 @@ function within the file named ``run.py``: 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 14*. We create a "finder" object using the :class:`repoze.zodbconn.finder.PersistentApplicationFinder` helper class, passing it the ZODB URI and the "appmaker" we've imported from ``models.py``. @@ -117,18 +117,18 @@ function within the file named ``run.py``: #. *Lines 15 - 16*. 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 17*. 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 +#. *Lines 18-20*. Begin configuration using the :meth:`repoze.bfg.configuration.Configurator.begin` method, 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 21*. Use the :meth:`repoze.bfg.configuration.Configurator.make_wsgi_app` method to return a :term:`WSGI` application. diff --git a/docs/tutorials/bfgwiki/installation.rst b/docs/tutorials/bfgwiki/installation.rst index df3eeee93..90bd57e31 100644 --- a/docs/tutorials/bfgwiki/installation.rst +++ b/docs/tutorials/bfgwiki/installation.rst @@ -117,7 +117,8 @@ Preparation, Windows .. code-block:: bat - c:\bigfntut> Scripts\easy_install -i http://dist.repoze.org/bfgsite/simple docutils repoze.tm repoze.zodbconn repoze.who nose coverage + c:\bigfntut> Scripts\easy_install -i http://dist.repoze.org/bfgsite/simple \ + docutils repoze.tm repoze.zodbconn repoze.who nose coverage .. _making_a_project: @@ -228,7 +229,8 @@ On Windows: .. code-block:: bat - c:\bigfntut\tutorial> ..\Scripts\nosetests --cover-package=tutorial --cover-erase --with-coverage + c:\bigfntut\tutorial> ..\Scripts\nosetests --cover-package=tutorial \ + --cover-erase --with-coverage Looks like the code in the ``bfg_zodb`` template for ZODB projects is missing some test coverage, particularly in the file named |
