Chris McDonough
2011-01-29 9afa52f0783d77b19e6ff0a509c5d556950a8a46
- Added ``egg:repoze.retry#retry`` middleware to the WSGI pipeline in ZODB
templates (retry ZODB conflict errors which occur in normal operations).
18 files modified
29 ■■■■ changed files
CHANGES.txt 3 ●●●●● patch | view | raw | blame | history
TODO.txt 6 ●●●●● patch | view | raw | blame | history
docs/tutorials/wiki/basiclayout.rst 5 ●●●●● patch | view | raw | blame | history
docs/tutorials/wiki/src/authorization/development.ini 1 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki/src/authorization/production.ini 1 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki/src/authorization/setup.py 1 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki/src/basiclayout/development.ini 1 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki/src/basiclayout/production.ini 1 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki/src/basiclayout/setup.py 1 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki/src/models/development.ini 1 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki/src/models/production.ini 1 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki/src/models/setup.py 1 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki/src/views/development.ini 1 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki/src/views/production.ini 1 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki/src/views/setup.py 1 ●●●● patch | view | raw | blame | history
pyramid/paster_templates/zodb/development.ini_tmpl 1 ●●●● patch | view | raw | blame | history
pyramid/paster_templates/zodb/production.ini_tmpl 1 ●●●● patch | view | raw | blame | history
pyramid/paster_templates/zodb/setup.py_tmpl 1 ●●●● patch | view | raw | blame | history
CHANGES.txt
@@ -24,6 +24,9 @@
- Deprecated-since-BFG-1.2 APIs from ``pyramid.testing`` now properly emit
  deprecation warnings.
- Added ``egg:repoze.retry#retry`` middleware to the WSGI pipeline in ZODB
  templates (retry ZODB conflict errors which occur in normal operations).
1.0b3 (2011-01-28)
==================
TODO.txt
@@ -4,19 +4,17 @@
Before Release
--------------
- Consider per-form_id CSRF instead of per-session global CSRF token.
- https://github.com/Pylons/pyramid/issues#issue/67 (fixing would make it
  possible to render a static site from a static dir).
- Change "Cleaning up After a Request" in the urldispatch chapter to
  use ``request.add_response_callback``.
- ``repoze.retry`` in ZODB template.
Should-Have
-----------
- Consider per-form_id CSRF instead of per-session global CSRF token.
- I18N support for pyramid_jinja2.  See also -
  http://groups.google.com/group/pylons-devel/msg/ab58353594b135c9 and
  https://github.com/Pylons/pyramid_jinja2/pull/14 
docs/tutorials/wiki/basiclayout.rst
@@ -187,6 +187,11 @@
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
docs/tutorials/wiki/src/authorization/development.ini
@@ -12,6 +12,7 @@
pipeline =
    egg:WebError#evalerror
    egg:repoze.zodbconn#closer
    egg:repoze.retry#retry
    tm
    tutorial
docs/tutorials/wiki/src/authorization/production.ini
@@ -30,6 +30,7 @@
pipeline =
    weberror
    egg:repoze.zodbconn#closer
    egg:repoze.retry#retry
    tm
    tutorial
docs/tutorials/wiki/src/authorization/setup.py
@@ -10,6 +10,7 @@
    'pyramid',
    'repoze.zodbconn',
    'repoze.tm2>=1.0b1', # default_commit_veto
    'repoze.retry',
    'ZODB3',
    'WebError',
    'docutils',
docs/tutorials/wiki/src/basiclayout/development.ini
@@ -12,6 +12,7 @@
pipeline =
    egg:WebError#evalerror
    egg:repoze.zodbconn#closer
    egg:repoze.retry#retry
    tm
    tutorial
docs/tutorials/wiki/src/basiclayout/production.ini
@@ -30,6 +30,7 @@
pipeline =
    weberror
    egg:repoze.zodbconn#closer
    egg:repoze.retry#retry
    tm
    tutorial
docs/tutorials/wiki/src/basiclayout/setup.py
@@ -10,6 +10,7 @@
    'pyramid',
    'repoze.zodbconn',
    'repoze.tm2>=1.0b1', # default_commit_veto
    'repoze.retry',
    'ZODB3',
    'WebError',
    ]
docs/tutorials/wiki/src/models/development.ini
@@ -12,6 +12,7 @@
pipeline =
    egg:WebError#evalerror
    egg:repoze.zodbconn#closer
    egg:repoze.retry#retry
    tm
    tutorial
docs/tutorials/wiki/src/models/production.ini
@@ -30,6 +30,7 @@
pipeline =
    weberror
    egg:repoze.zodbconn#closer
    egg:repoze.retry#retry
    tm
    tutorial
docs/tutorials/wiki/src/models/setup.py
@@ -10,6 +10,7 @@
    'pyramid',
    'repoze.zodbconn',
    'repoze.tm2>=1.0b1', # default_commit_veto
    'repoze.retry',
    'ZODB3',
    'WebError',
    'docutils',
docs/tutorials/wiki/src/views/development.ini
@@ -12,6 +12,7 @@
pipeline =
    egg:WebError#evalerror
    egg:repoze.zodbconn#closer
    egg:repoze.retry#retry
    tm
    tutorial
docs/tutorials/wiki/src/views/production.ini
@@ -30,6 +30,7 @@
pipeline =
    weberror
    egg:repoze.zodbconn#closer
    egg:repoze.retry#retry
    tm
    tutorial
docs/tutorials/wiki/src/views/setup.py
@@ -10,6 +10,7 @@
    'pyramid',
    'repoze.zodbconn',
    'repoze.tm2>=1.0b1', # default_commit_veto
    'repoze.retry',
    'ZODB3',
    'WebError',
    'docutils',
pyramid/paster_templates/zodb/development.ini_tmpl
@@ -12,6 +12,7 @@
pipeline =
    egg:WebError#evalerror
    egg:repoze.zodbconn#closer
    egg:repoze.retry#retry
    tm
    {{project}}
pyramid/paster_templates/zodb/production.ini_tmpl
@@ -30,6 +30,7 @@
pipeline =
    weberror
    egg:repoze.zodbconn#closer
    egg:repoze.retry#retry
    tm
    {{project}}
pyramid/paster_templates/zodb/setup.py_tmpl
@@ -10,6 +10,7 @@
    'pyramid',
    'repoze.zodbconn',
    'repoze.tm2>=1.0b1', # default_commit_veto
    'repoze.retry',
    'ZODB3',
    'WebError',
    ]