From 9a98308d994545aa620960f7c61cb5b80bee3331 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 25 Jan 2009 19:14:34 +0000 Subject: Root factory nomenclature. --- docs/narr/startup.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'docs/narr/startup.rst') diff --git a/docs/narr/startup.rst b/docs/narr/startup.rst index e12f0ef81..000f4d612 100644 --- a/docs/narr/startup.rst +++ b/docs/narr/startup.rst @@ -99,9 +99,9 @@ press ``return`` after running ``paster serve MyProject.ini``. .. literalinclude:: MyProject/myproject/run.py :linenos: - Note that the app function imports the ``get_root`` function from - the ``myproject.models`` Python module. It then also imports the - "bare" ``myproject`` package, and passes ``get_root``, + Note that the app function imports the ``get_root`` root factory + function from the ``myproject.models`` Python module. It then also + imports the "bare" ``myproject`` package, and passes ``get_root``, ``myproject``, and the result of ``get_options(kw)`` as the ``options`` keyword to the ``make_app`` function of the ``repoze.bfg.router`` module. @@ -120,8 +120,8 @@ press ``return`` after running ``paster serve MyProject.ini``. automatically reloaded by the application when they are changed. ``get_root`` is the first argument to ``make_app``, and it is a - callable that is invoked on every request to retrieve the - application root. It is not called during startup, only when a + root factory callable that is invoked on every request to retrieve + the application root. It is not called during startup, only when a request is handled. We pass in the bare ``myproject`` package so that the ``make_app`` -- cgit v1.2.3