From 91d18f5d333dc502e35a4e9f43282f2e33d93254 Mon Sep 17 00:00:00 2001 From: pauget Date: Thu, 9 Sep 2004 02:44:34 +0200 Subject: [PATCH] Bug sur utilisation blackliste. darcs-hash:20040909004434-41617-132fe223ba9466d3afe8f7760febbe076a3707ee.gz --- gestion/gest_crans.py | 4 ++-- gestion/ldap_crans.py | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gestion/gest_crans.py b/gestion/gest_crans.py index b0c2835d..f7906a52 100755 --- a/gestion/gest_crans.py +++ b/gestion/gest_crans.py @@ -610,8 +610,8 @@ def set_blackliste(clas) : arg = u'--title "Blacklistage %s" ' % clas.Nom() arg+= u'--default-item "%s" ' % t[2] arg+= u'--menu "Choisir la sanction :" 0 0 0 ' - for n, c in blacklist_items : - arg+= u'"%s" "%s" ' % (n, c.description) + for n, c in blacklist_items.items() : + arg+= u'"%s" "%s" ' % (n, c) annul , res = dialog(arg) if annul : return 1 t[2] = res[0] diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index 7b6e5601..df969fde 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -37,7 +37,9 @@ import ldap_secret ################################################################################## ### Items de la blackliste -blacklist_items = [ u'bloq' , u'bl_virus' ,u'bl_upload' ] +blacklist_items = { u'bloq' : u'Bloquage total de tout services' , + u'bl_virus' : u'Bloquage sur squid', + u'bl_upload' : u'Bloquage total accès extérieur' } ################################################################################## ### Droits possibles