equal
deleted
inserted
replaced
|
1 """ Defaults for a classical CubicWeb instance. """ |
|
2 |
|
3 |
1 def includeme(config): |
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:`pyramid_cubicweb.session <pyramid_cubicweb.session.includeme>` |
|
11 - :func:`pyramid_cubicweb.auth <pyramid_cubicweb.auth.includeme>` |
|
12 - :func:`pyramid_cubicweb.login <pyramid_cubicweb.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 """ |
2 config.include('pyramid_cubicweb.session') |
22 config.include('pyramid_cubicweb.session') |
3 config.include('pyramid_cubicweb.auth') |
23 config.include('pyramid_cubicweb.auth') |
4 config.include('pyramid_cubicweb.login') |
24 config.include('pyramid_cubicweb.login') |