Project

General

Profile

Revision 046c501b

ID046c501b9368625de560e9a592edcecd9b375eba
Parent ed87b281
Child f419d747

Added by Francois POIROTTE over 13 years ago

Reprise de la modification du middleware d'authentification de VigiBoard dans les autres IHM (voir r6251).
Petite correction : le logger pour l'authentification n'était plus actif.
Permet d'améliorer légèrement les performances des différentes IHM en éliminant certaines requêtes SQL
liées aux vérifications de l'authentification (cf. #499).

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

View differences:

vigiboard/config/middleware.py
57 57
    """
58 58
    app = make_base_app(global_conf, full_stack=full_stack, **app_conf)
59 59

  
60
    # Ajout du middleware d'authentification.
60 61
    app = make_who_with_config(
61 62
        app, global_conf,
62 63
        app_conf.get('auth.config', 'who.ini'),
......
64 65
        None,
65 66
        app_conf.get('skip_authentication')
66 67
    )
68
    # On force l'utilisation d'un logger nommé "auth"
69
    # pour la compatibilité avec TurboGears.
70
    app.logger = getLogger('auth')
67 71

  
68 72
    # On définit 2 middlewares pour fichiers statiques qui cherchent
69 73
    # les fichiers dans le thème actuellement chargé.
......
76 80
    local_static = StaticURLParser(resource_filename(
77 81
        'vigiboard', 'public'))
78 82
    app = Cascade([app_static, common_static, local_static, app])
79
    # On force l'utilisation d'un logger nommé "auth"
80
    # pour la compatibilité avec TurboGears.
81
    app.logger = getLogger('auth')
82 83
    return app

Also available in: Unified diff