site_cubicweb.py
author Julien Cristau <julien.cristau@logilab.fr>
Wed, 23 Dec 2015 11:53:04 +0100
changeset 11669 92a6abe992ac
parent 11636 2babe3694bed
child 11673 c3a583e38360
permissions -rw-r--r--
Added tag 0.3.2, debian/0.3.2-1 for changeset ab4c5509407f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11635
fc4ecec311f4 Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents: 11634
diff changeset
     1
from logilab.common.configuration import REQUIRED
fc4ecec311f4 Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents: 11634
diff changeset
     2
11634
fa614537e5ee Add a CWSession entity.
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     3
import cubicweb.schema
fa614537e5ee Add a CWSession entity.
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     4
fa614537e5ee Add a CWSession entity.
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     5
cubicweb.schema.INTERNAL_TYPES.add('CWSession')
11635
fc4ecec311f4 Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents: 11634
diff changeset
     6
fc4ecec311f4 Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents: 11634
diff changeset
     7
options = (
11636
2babe3694bed Add the 'pyramid-auth-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents: 11635
diff changeset
     8
    ('pyramid-auth-secret', {
2babe3694bed Add the 'pyramid-auth-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents: 11635
diff changeset
     9
        'type': 'string',
2babe3694bed Add the 'pyramid-auth-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents: 11635
diff changeset
    10
        'default': REQUIRED,
2babe3694bed Add the 'pyramid-auth-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents: 11635
diff changeset
    11
        'help': 'Secret phrase to encrypt the authentication cookie',
2babe3694bed Add the 'pyramid-auth-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents: 11635
diff changeset
    12
        'group': 'pyramid',
2babe3694bed Add the 'pyramid-auth-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents: 11635
diff changeset
    13
        'level': 3
2babe3694bed Add the 'pyramid-auth-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents: 11635
diff changeset
    14
    }),
11635
fc4ecec311f4 Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents: 11634
diff changeset
    15
    ('pyramid-session-secret', {
fc4ecec311f4 Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents: 11634
diff changeset
    16
        'type': 'string',
fc4ecec311f4 Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents: 11634
diff changeset
    17
        'default': REQUIRED,
fc4ecec311f4 Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents: 11634
diff changeset
    18
        'help': 'Secret phrase to sign the session cookie',
fc4ecec311f4 Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents: 11634
diff changeset
    19
        'group': 'pyramid',
fc4ecec311f4 Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents: 11634
diff changeset
    20
        'level': 3
fc4ecec311f4 Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents: 11634
diff changeset
    21
    }),
fc4ecec311f4 Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents: 11634
diff changeset
    22
)