Bug sur utilisation blackliste.
darcs-hash:20040909004434-41617-132fe223ba9466d3afe8f7760febbe076a3707ee.gz
This commit is contained in:
parent
41620614b3
commit
91d18f5d33
2 changed files with 5 additions and 3 deletions
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue