diff options
| author | adroullier <arndt@nive.co> | 2023-10-19 17:40:31 +0200 |
|---|---|---|
| committer | adroullier <arndt@nive.co> | 2023-10-24 13:24:24 +0200 |
| commit | cbdc4b9ad9bdb20a4e0ad17f9d5af26147b771f9 (patch) | |
| tree | 3f51eae7af402c8ae4a5b7b229ad8f2919954b9f /docs | |
| parent | 3739a7790ba92c34098df3d804f27a1d8429f9fe (diff) | |
| download | pyramid-cbdc4b9ad9bdb20a4e0ad17f9d5af26147b771f9.tar.gz pyramid-cbdc4b9ad9bdb20a4e0ad17f9d5af26147b771f9.tar.bz2 pyramid-cbdc4b9ad9bdb20a4e0ad17f9d5af26147b771f9.zip | |
Adding script name to 'global_config' during application setup as '__script__'
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/narr/startup.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/narr/startup.rst b/docs/narr/startup.rst index 37825d2da..27970ed88 100644 --- a/docs/narr/startup.rst +++ b/docs/narr/startup.rst @@ -101,7 +101,9 @@ Here's a high-level time-ordered overview of what happens when you press Note that the constructor function accepts a ``global_config`` argument, which is a dictionary of key/value pairs mentioned in the ``[DEFAULT]`` section of an ``.ini`` file (if :ref:`[DEFAULT] - <defaults_section_of_pastedeploy_file>` is present). It also accepts a + <defaults_section_of_pastedeploy_file>` is present) and the executing + script name ``__script__`` like ``pserve``, ``prequest`` or ``pshell``. + It also accepts a ``**settings`` argument, which collects another set of arbitrary key/value pairs. The arbitrary key/value pairs received by this function in ``**settings`` will be composed of all the key/value pairs that are present |
