author | Christophe de Vienne <christophe@unlish.com> |
Thu, 18 Sep 2014 11:17:57 +0200 | |
changeset 11635 | fc4ecec311f4 |
parent 11634 | fa614537e5ee |
child 11636 | 2babe3694bed |
permissions | -rw-r--r-- |
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 = ( |
fc4ecec311f4
Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents:
11634
diff
changeset
|
8 |
('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
|
9 |
'type': 'string', |
fc4ecec311f4
Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents:
11634
diff
changeset
|
10 |
'default': REQUIRED, |
fc4ecec311f4
Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents:
11634
diff
changeset
|
11 |
'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
|
12 |
'group': 'pyramid', |
fc4ecec311f4
Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents:
11634
diff
changeset
|
13 |
'level': 3 |
fc4ecec311f4
Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents:
11634
diff
changeset
|
14 |
}), |
fc4ecec311f4
Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents:
11634
diff
changeset
|
15 |
) |