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