From 040efebc0012697e416462d905f8cca048de3d12 Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Wed, 8 Oct 2014 22:23:35 +0200 Subject: [PATCH] portail: passage en bl soft sans continue --- utils/portail_captif.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/utils/portail_captif.py b/utils/portail_captif.py index f8bc9316..1726321f 100644 --- a/utils/portail_captif.py +++ b/utils/portail_captif.py @@ -4,7 +4,8 @@ import sys import subprocess import time import ldap -sys.path.append('/usr/scripts/') +if '/usr/scripts' not in sys.path: + sys.path.append('/usr/scripts') import lc_ldap.shortcuts import lc_ldap.objets @@ -51,7 +52,11 @@ deco={ 'bloq':'ERR_CUSTOM_BLOQ.html', 'nouvelle_annee':'ERR_CUSTOM_NOUVELLE_ANNEE.html', - 'paiement': 'ERR_CUSTOM_READHESION.html', + 'paiement':'ERR_CUSTOM_NOUVELLE_ANNEE.html', + + # en cas de sursis, la page donne une url pour continuer à naviguer + # sur Internet + 'paiement_sursis': 'ERR_CUSTOM_READHESION.html', 'proxy_local':'ERR_CUSTOM_PROXY_LOCAL.html', 'virus':'ERR_CUSTOM_BL_VIRUS.html',