Project

General

Profile

Revision 2e753457

ID2e75345723d395c26e280c4a0cde4c73dbed1e48
Parent 98a40b9f
Child b017726f

Added by Francois POIROTTE almost 14 years ago

Modification des applications pour qu'elles utilisent un fichier de configuration séparé pour l'authentification (who.ini).

git-svn-id: https://vigilo-dev.si.c-s.fr/svn@3991 b22e2e97-25c9-44ff-b637-2e5ceca36478

View differences:

vigiboard/config/app_cfg.py
8 8
Please note that **all the argument values are strings**. If you want to
9 9
convert them into boolean, for example, you should use the
10 10
:func:`paste.deploy.converters.asbool` function, as in::
11
    
11

  
12 12
    from paste.deploy.converters import asbool
13 13
    setting = asbool(global_conf.get('the_setting'))
14
 
14

  
15 15
"""
16 16

  
17 17
from vigilo.turbogears import VigiloAppConfig
......
23 23
base_config = VigiloAppConfig('vigiboard')
24 24
base_config.package = vigiboard
25 25

  
26
# Configure the authentication backend
27
base_config.auth_backend = 'sqlalchemy'
28

  
29
# override this if you would like to provide a different who plugin for
30
# managing login and logout of your application
31
base_config.sa_auth.form_plugin = None
32

  
33
# You may optionally define a page where you want users to be redirected to
34
# on login:
35
base_config.sa_auth.post_login_url = '/post_login'
36

  
37
# You may optionally define a page where you want users to be redirected to
38
# on logout:
39
base_config.sa_auth.post_logout_url = '/post_logout'
40

  
41

  
42 26
##################################
43 27
# Settings specific to Vigiboard #
44 28
##################################
......
78 62
    ('hls', 'PluginHLS'),
79 63
    ('status', 'PluginStatus'),
80 64
]
81

  

Also available in: Unified diff