Project

General

Profile

Revision b447c3f8

IDb447c3f89370585ae5bb2e563ea58a64473a0162
Parent 2fda046c
Child e4ab59c0, 4a4e1e3a

Added by Francois POIROTTE about 10 years ago

Personnalisation fichiers statiques

Généralisation du mécanisme de personnalisation des fichiers statiques
à l'ensemble des IHMs web.

Change-Id: I1b70098ef62fef659f9f3629b5865fea4708fb4a
Reviewed-on: https://vigilo-dev.si.c-s.fr/review/1445
Tested-by: Build system <>
Reviewed-by: Thomas BURGUIERE <>

View differences:

vigigraph/config/middleware.py
40 40
    """
41 41
    app = make_base_app(global_conf, full_stack=full_stack, **app_conf)
42 42

  
43
    # Personalisation des fichiers statiques via /etc/vigilo/vigigraph/public/.
44
    custom_static = StaticURLParser('/etc/vigilo/vigigraph/public/')
45

  
43 46
    # On définit 2 middlewares pour fichiers statiques qui cherchent
44 47
    # les fichiers dans le thème actuellement chargé.
45 48
    # Le premier va les chercher dans le dossier des fichiers spécifiques
......
50 53
        'vigilo.themes.public', 'common'))
51 54
    local_static = StaticURLParser(resource_filename(
52 55
        'vigigraph', 'public'))
53
    cascade_list = [app_static, common_static, local_static, app]
56
    cascade_list = [custom_static, app_static, common_static, local_static, app]
54 57

  
55 58
    LOGGER = getLogger("vigigraph")
56 59
    ## Mise en place du répertoire d'extensions

Also available in: Unified diff