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/middleware.py
8 8
from pkg_resources import resource_filename
9 9
from paste.cascade import Cascade
10 10
from paste.urlparser import StaticURLParser
11
from repoze.who.config import make_middleware_with_config \
12
                            as make_who_with_config
11 13

  
12 14
__all__ = ['make_app']
13 15

  
14
# Use base_config to setup the necessary PasteDeploy application factory. 
15
# make_base_app will wrap the TG2 app with all the middleware it needs. 
16
# Use base_config to setup the necessary PasteDeploy application factory.
17
# make_base_app will wrap the TG2 app with all the middleware it needs.
16 18
make_base_app = base_config.setup_tg_wsgi_app(load_environment)
17 19

  
18 20

  
......
20 22
    """
21 23
    Set vigiboard up with the settings found in the PasteDeploy configuration
22 24
    file used.
23
    
25

  
24 26
    This is the PasteDeploy factory for the vigiboard application.
25
    
27

  
26 28
    C{app_conf} contains all the application-specific settings (those defined
27 29
    under ``[app:main]``).
28
    
30

  
29 31
    @param global_conf: The global settings for vigiboard (those
30 32
        defined under the ``[DEFAULT]`` section).
31 33
    @type global_conf: C{dict}
......
48 50
                'vigiboard', 'public'))
49 51
    app = Cascade([app_static, common_static, local_static, app])
50 52

  
53
    app = make_who_with_config(
54
        app, global_conf,
55
        app_conf.get('auth.config', 'who.ini'),
56
        app_conf.get('auth.log_file', 'stdout'),
57
        app_conf.get('auth.log_level', 'debug'),
58
    )
51 59
    return app
52

  

Also available in: Unified diff