summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pyramid/paster.py6
-rw-r--r--src/pyramid/scripting.py6
2 files changed, 12 insertions, 0 deletions
diff --git a/src/pyramid/paster.py b/src/pyramid/paster.py
index 22c09e41a..00c1a8915 100644
--- a/src/pyramid/paster.py
+++ b/src/pyramid/paster.py
@@ -107,6 +107,12 @@ def bootstrap(config_uri, request=None, options=None):
Added the ability to use the return value as a context manager.
+ .. versionchanged:: 2.0
+
+ Request finished callbacks added via
+ :meth:`pyramid.request.Request.add_finished_callback` will be invoked
+ by the ``closer``.
+
"""
app = get_app(config_uri, options=options)
env = prepare(request)
diff --git a/src/pyramid/scripting.py b/src/pyramid/scripting.py
index 4178b6526..bf23f1008 100644
--- a/src/pyramid/scripting.py
+++ b/src/pyramid/scripting.py
@@ -74,6 +74,12 @@ def prepare(request=None, registry=None):
Added the ability to use the return value as a context manager.
+ .. versionchanged:: 2.0
+
+ Request finished callbacks added via
+ :meth:`pyramid.request.Request.add_finished_callback` will be invoked
+ by the ``closer``.
+
"""
if registry is None:
registry = getattr(request, 'registry', global_registries.last)