Don't rollback if exception is HTTPSuccessful or HTTPRedirection
In the request finishing, the 'cleanup' callback set by _cw_cnx
automatically commit the transaction except is an exception is set
on the request.
Problem is, redirections and successul http return code can raise
exceptions.
This patch detects such exceptions and avoid rolling back the transaction.
Closes #4566482
Source: pyramid-cubicweb
Section: python
Priority: optional
Build-Depends:
python,
python-setuptools,
python-pyramid,
python-waitress,
debhelper (>= 9),
Standards-Version: 3.9.6
Maintainer: Julien Cristau <julien.cristau@logilab.fr>
Homepage: https://www.cubicweb.org/project/pyramid_cubicweb
Vcs-Browser: http://hg.logilab.org/master/pyramid_cubicweb
Vcs-Hg: http://hg.logilab.org/master/pyramid_cubicweb
Package: pyramid-cubicweb
Architecture: all
Depends:
${misc:Depends},
${python:Depends},
python-pyramid (>= 1.5.0),
python-waitress (>= 0.8.9),
cubicweb-common (>= 3.19.3),
# XXX wsgicors?
Description: Integrate CubicWeb with a Pyramid application
Provides pyramid extensions to load a CubicWeb instance and serve it through
the pyramid stack.
.
It prefigures what CubicWeb 4.0 will be.