# HG changeset patch # User Denis Laxalde # Date 1490189691 -3600 # Node ID b8bfcab1a91ce6aa400cab9fc5196a4693cc5cdf # Parent 08d403c09a10b0382b93b427ee28bf478abf8b6a [doc] Rewrite "pyramid" index page in the book We drop references to pyramid-cubicweb and cubicweb-pyramid, remaining of the merge in 3.24. We now mention the two possible operation modes (with bwcompat being true or false). diff -r 08d403c09a10 -r b8bfcab1a91c doc/book/pyramid/index.rst --- a/doc/book/pyramid/index.rst Wed Mar 22 15:05:04 2017 +0100 +++ b/doc/book/pyramid/index.rst Wed Mar 22 14:34:51 2017 +0100 @@ -1,18 +1,22 @@ -================ -Pyramid Cubicweb -================ +Pyramid +======= -Pyramid Cubicweb is an attempt to rebase the CubicWeb framework on pyramid. +:mod:`cubicweb.pyramid` provides a way to bind a CubicWeb data repository to a +Pyramid WSGI web application. It can be used in two different ways: -- Within CubicWeb, through the 'pyramid' cube and the - :ref:`pyramid command `. - In this mode, the Pyramid CubicWeb replaces some parts of - CubicWeb and make the pyramid api available to the cubes. +- Through the :ref:`pyramid command ` or through + :func:`cubicweb.pyramid.wsgi_application` WSGI application factory, one can + run an ``all-in-one`` CubicWeb instance with the web part served by a + Pyramid application. This is referred to as the *backwards compatible + mode*. -- Within a pyramid application, it provides easy access to a CubicWeb - instance and registry. +- Through the ``pyramid`` configuration type, one can setup a CubicWeb + instance which repository can be used from within a Pyramid application. + Such an instance may be launched through ``pserve`` or any WSGI server as + would any plain Pyramid application. + Narrative Documentation =======================