summaryrefslogtreecommitdiff
path: root/docs/narr/project.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-11-23 08:30:38 +0000
committerChris McDonough <chrism@agendaless.com>2009-11-23 08:30:38 +0000
commit44b2ca3219cf495ae0d3a66b81befdf368ef916d (patch)
tree8ca301dbb764f7c6de494a75a93915d8130511bf /docs/narr/project.rst
parentbd39b16939147d667e9c483e341c0e0a14284eec (diff)
downloadpyramid-44b2ca3219cf495ae0d3a66b81befdf368ef916d.tar.gz
pyramid-44b2ca3219cf495ae0d3a66b81befdf368ef916d.tar.bz2
pyramid-44b2ca3219cf495ae0d3a66b81befdf368ef916d.zip
- The ``repoze.bfg.router.make_app`` function is now nominally
deprecated. Its import and usage does not throw a warning, nor will it probably ever disappear. However, using a ``repoze.bfg.configuration.Configurator`` class is now the preferred way to generate a WSGI application. - The ``run.py`` module in various ``repoze.bfg`` ``paster`` templates now use a ``repoze.bfg.configuration.Configurator`` class instead of the (now-legacy) ``repoze.bfg.router.make_app`` function to produce a WSGI application.
Diffstat (limited to 'docs/narr/project.rst')
-rw-r--r--docs/narr/project.rst11
1 files changed, 7 insertions, 4 deletions
diff --git a/docs/narr/project.rst b/docs/narr/project.rst
index 776f6f9a8..80fe6beac 100644
--- a/docs/narr/project.rst
+++ b/docs/narr/project.rst
@@ -692,11 +692,14 @@ without the PasteDeploy configuration file:
.. literalinclude:: MyProject/myproject/run.py
:linenos:
-#. Line 1 imports the ``make_app`` functions from
- :mod:`repoze.bfg.router` that we use later.
+#. Line 1 imports the ``Configurator`` class from
+ :mod:`repoze.bfg.configuration` that we use later.
-#. Lines 3-10 define a function that returns a :mod:`repoze.bfg` Router
- application from :ref:`router_module` . This is meant to be called
+#. Line 2 imports the ``get_root`` function from
+ :mod:`myproject.models` that we use later.
+
+#. Lines 4-11 define a function that returns a :mod:`repoze.bfg`
+ WSGI application. This function is meant to be called
by the :term:`PasteDeploy` framework as a result of running
``paster serve``.