Project

General

Profile

Revision 301d508e

ID301d508e333db8d3a967f2bd2fe47610c7e1ffe5
Parent d9afe37a
Child ef33a10f

Added by Francois POIROTTE about 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:

vigigraph/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
import vigigraph
......
20 20

  
21 21
base_config = VigiloAppConfig('vigigraph')
22 22
base_config.package = vigigraph
23

  
24
# Configure the authentication backend
25
base_config.auth_backend = 'sqlalchemy'
26

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

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

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

  
39

  
40
##################################
41
# Settings specific to Vigigraph #
42
##################################
43

  

Also available in: Unified diff