equal
deleted
inserted
replaced
|
1 """ Defaults for a classical CubicWeb instance. """ |
|
2 |
|
3 |
|
4 def includeme(config): |
|
5 """ Enable the defaults that make the application behave like a classical |
|
6 CubicWeb instance. |
|
7 |
|
8 The following modules get included: |
|
9 |
|
10 - :func:`cubicweb.pyramid.session <cubicweb.pyramid.session.includeme>` |
|
11 - :func:`cubicweb.pyramid.auth <cubicweb.pyramid.auth.includeme>` |
|
12 - :func:`cubicweb.pyramid.login <cubicweb.pyramid.login.includeme>` |
|
13 |
|
14 It is automatically included by the configuration system, unless the |
|
15 following entry is added to the :ref:`pyramid_settings`: |
|
16 |
|
17 .. code-block:: ini |
|
18 |
|
19 cubicweb.defaults = no |
|
20 |
|
21 """ |
|
22 config.include('cubicweb.pyramid.session') |
|
23 config.include('cubicweb.pyramid.auth') |
|
24 config.include('cubicweb.pyramid.login') |