affich_tools est déprécié, utilise affichage

This commit is contained in:
Pierre-Elliott Bécue 2015-11-23 23:55:49 +01:00
parent 46b5aca99f
commit b9bd5ab1fc
3 changed files with 13 additions and 9 deletions

View file

@ -13,7 +13,7 @@ import traceback
if '/usr/scripts' not in sys.path:
sys.path.append('/usr/scripts')
from gestion.affich_tools import coul
from gestion import affichage
import gestion.config as config
import lc_ldap.objets as objets
@ -37,10 +37,14 @@ class Dialog(lc.Dialog):
index = 0
for bl in obj['blacklist']:
choices.append(
(str(index),
coul("%s [%s]" % (bl['type'], bl['comm']), 'rouge' if bl['actif'] else None,
dialog=True)
)
(
str(index),
affichage.style(
"%s [%s]" % (bl['type'], bl['comm']),
'rouge' if bl['actif'] else None,
dialog=True
)
)
)
index+=1
return self.dialog.menu(