diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-01-25 19:14:34 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-01-25 19:14:34 +0000 |
| commit | 9a98308d994545aa620960f7c61cb5b80bee3331 (patch) | |
| tree | 459054ea9ac4cb3482fe21d968d385fd76528f30 /docs/narr/startup.rst | |
| parent | 957132ae62528f63a9f7e806858bd1ea7394f778 (diff) | |
| download | pyramid-9a98308d994545aa620960f7c61cb5b80bee3331.tar.gz pyramid-9a98308d994545aa620960f7c61cb5b80bee3331.tar.bz2 pyramid-9a98308d994545aa620960f7c61cb5b80bee3331.zip | |
Root factory nomenclature.
Diffstat (limited to 'docs/narr/startup.rst')
| -rw-r--r-- | docs/narr/startup.rst | 10 |
1 files changed, 5 insertions, 5 deletions
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`` |
