affich_tools est déprécié, utilise affichage
This commit is contained in:
parent
46b5aca99f
commit
b9bd5ab1fc
3 changed files with 13 additions and 9 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue