diff options
| author | Chris McDonough <chrism@plope.com> | 2010-11-03 23:11:07 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2010-11-03 23:11:07 -0400 |
| commit | c7c40b9b3b3c0008185f1a44a2aba4f95f29abd0 (patch) | |
| tree | 839bf0a16a3add905e58dc037703ce400f1fa43e /docs/narr/startup.rst | |
| parent | 108698b020c4b360c180ab3faa6f11e45a51439c (diff) | |
| download | pyramid-c7c40b9b3b3c0008185f1a44a2aba4f95f29abd0.tar.gz pyramid-c7c40b9b3b3c0008185f1a44a2aba4f95f29abd0.tar.bz2 pyramid-c7c40b9b3b3c0008185f1a44a2aba4f95f29abd0.zip | |
de-zcml-ify various chapters and move ZCML to the declarative chapter
Diffstat (limited to 'docs/narr/startup.rst')
| -rw-r--r-- | docs/narr/startup.rst | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/docs/narr/startup.rst b/docs/narr/startup.rst index ef118d857..c86a279ee 100644 --- a/docs/narr/startup.rst +++ b/docs/narr/startup.rst @@ -102,30 +102,23 @@ press ``return`` after running ``paster serve MyProject.ini``. request to retrieve the application root. It is not called during startup, only when a request is handled. - ``settings`` dictionary contains all the options in the + The ``settings`` dictionary contains all the options in the ``[app:main]`` section of our .ini file except the "use" option (which is internal to paste). In this case, ``**settings`` will be something like ``{'reload_templates':'true', 'debug_authorization':'false', 'debug_notfound':'false'}``. -#. The ``app`` function then calls the - :meth:`pyramid.configuration.Configurator.load_zcml` method, - passing in a ``zcml_file`` value. ``zcml_file`` is the value of - the ``configure_zcml`` setting or a default of ``configure.zcml``. - This filename is relative to the run.py file that the ``app`` - function lives in. The ``load_zcml`` function processes each - :term:`ZCML declaration` in the ZCML file implied by the - ``zcml_file`` argument. If ``load_zcml`` fails to parse the ZCML - file (or any file which is included by the ZCML file), a - ``XMLConfigurationError`` is raised and processing ends. If it - succeeds, an :term:`application registry` is populated using all - the :term:`ZCML declaration` statements present in the file. - -#. The :meth:`pyramid.configuration.Configurator.make_wsgi_app` - method is called. The result is a :term:`router` instance. The - router is associated with the :term:`application registry` implied - by the configurator previously populated by ZCML. The router is a - WSGI application. +#. The ``app`` function then calls various methods on the an instance of the + class :class:`pyramid.configuration.Configurator` method. The intent of + calling these methods is to populate an :term:`application registry`, + which represents the :mod:`pyramid` configuration related to the + application. + +#. The :meth:`pyramid.configuration.Configurator.make_wsgi_app` method is + called. The result is a :term:`router` instance. The router is + associated with the :term:`application registry` implied by the + configurator previously populated by other methods run against the + Configurator. The router is a WSGI application. #. A :class:`pyramid.interfaces.IApplicationCreated` event is emitted (see :ref:`events_chapter` for more information about |
