summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki/basiclayout.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-01-29 02:34:40 -0500
committerChris McDonough <chrism@plope.com>2011-01-29 02:34:40 -0500
commit9afa52f0783d77b19e6ff0a509c5d556950a8a46 (patch)
treef140a2fc3f6eb3792c9b7bb851a63b39de567ab6 /docs/tutorials/wiki/basiclayout.rst
parenta936df49ac018656df417b5a76bf04b620cfcdc9 (diff)
downloadpyramid-9afa52f0783d77b19e6ff0a509c5d556950a8a46.tar.gz
pyramid-9afa52f0783d77b19e6ff0a509c5d556950a8a46.tar.bz2
pyramid-9afa52f0783d77b19e6ff0a509c5d556950a8a46.zip
- Added ``egg:repoze.retry#retry`` middleware to the WSGI pipeline in ZODB
templates (retry ZODB conflict errors which occur in normal operations).
Diffstat (limited to 'docs/tutorials/wiki/basiclayout.rst')
-rw-r--r--docs/tutorials/wiki/basiclayout.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/tutorials/wiki/basiclayout.rst b/docs/tutorials/wiki/basiclayout.rst
index 884f17840..7fe7daac8 100644
--- a/docs/tutorials/wiki/basiclayout.rst
+++ b/docs/tutorials/wiki/basiclayout.rst
@@ -187,6 +187,11 @@ The ``egg:repoze.zodbconn#closer`` middleware is in the middle of the
pipeline. This is a piece of middleware which closes the ZODB connection
opened by the ``PersistentApplicationFinder`` at the end of the request.
+The ``egg:repoze.retry#retry`` middleware catches ``ConflictError``
+exceptions from ZODB and retries the request up to three times (ZODB is an
+optimistic concurrency database that relies on application-level transaction
+retries when a conflict occurs).
+
The ``tm`` middleware is the last piece of middleware in the pipeline. This
commits a transaction near the end of the request unless there's an exception
raised or the HTTP response code is an error code. The ``tm`` refers to the