diff -r 1817f8946c22 -r faf279e33298 cubicweb/pyramid/defaults.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cubicweb/pyramid/defaults.py Mon Sep 26 14:52:12 2016 +0200 @@ -0,0 +1,24 @@ +""" Defaults for a classical CubicWeb instance. """ + + +def includeme(config): + """ Enable the defaults that make the application behave like a classical + CubicWeb instance. + + The following modules get included: + + - :func:`cubicweb.pyramid.session ` + - :func:`cubicweb.pyramid.auth ` + - :func:`cubicweb.pyramid.login ` + + It is automatically included by the configuration system, unless the + following entry is added to the :ref:`pyramid_settings`: + + .. code-block:: ini + + cubicweb.defaults = no + + """ + config.include('cubicweb.pyramid.session') + config.include('cubicweb.pyramid.auth') + config.include('cubicweb.pyramid.login')