diff options
| author | Michael Merickel <michael@merickel.org> | 2024-01-27 18:23:23 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-27 18:23:23 -0700 |
| commit | 55f9eb0bb0b72fe60ecde7529edbc27aceade187 (patch) | |
| tree | 1e34614ff9be1c59ad6a2ebb1f4e8bc2a17c6c1d /CHANGES.rst | |
| parent | 19ae96b97ea055c2e36c8fb86819c426b37ab6af (diff) | |
| parent | fd42b0c8d08f69f88e3728b1c1ff3f50071f4b30 (diff) | |
| download | pyramid-55f9eb0bb0b72fe60ecde7529edbc27aceade187.tar.gz pyramid-55f9eb0bb0b72fe60ecde7529edbc27aceade187.tar.bz2 pyramid-55f9eb0bb0b72fe60ecde7529edbc27aceade187.zip | |
Merge pull request #3735 from adroullier/script_info
Adding script name to 'global_config' during application setup
Diffstat (limited to 'CHANGES.rst')
| -rw-r--r-- | CHANGES.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/CHANGES.rst b/CHANGES.rst index cb9628827..b4a62f94e 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -11,6 +11,17 @@ Features - Coverage reports in tests based on Python 3.12 instead of Python 3.8. +- All scripts now pass a new option ``__script__`` when loading the WSGI app. + For example, ``pserve`` sets ``__script__ == 'pserve'``. This works for + ``pserve``, ``pshell``, ``prequest``, ``proutes``, ``ptweens``, ``pviews``, + as well as when using ``pyramid.paster.bootstrap`` directly. + + When using ``plaster-pastedeploy`` to load an INI file, this option will + manifest as a new value passed into the ``global_conf`` arg of your + application factory, where you can use it as part of initializing your app. + + See https://github.com/Pylons/pyramid/pull/3735 + Bug Fixes --------- |
