[gest_crans_lc] On affiche si on utilise la base de test

This commit is contained in:
Valentin Samir 2015-02-15 13:15:38 +01:00
parent 5201e3dfdf
commit f006ddb50c
7 changed files with 23 additions and 16 deletions

View file

@ -225,7 +225,7 @@ class Dialog(certificat.Dialog, blacklist.Dialog):
title="Modification de %s" % machine['host'][0],
scrollbar=True,
cancel_label="Retour",
backtitle=u"Vous êtes connecté en tant que %s" % self.conn.current_login,
backtitle=self._connected_as(),
choices=[(key, menu[key]['text']) for key in menu_order if self.has_right(menu_droits[key], machine)])
def todo(tag, menu, machine, cont_ret):
@ -286,7 +286,7 @@ class Dialog(certificat.Dialog, blacklist.Dialog):
title="Création de machines",
scrollbar=True,
cancel_label="Retour",
backtitle=u"Vous êtes connecté en tant que %s" % self.conn.current_login,
backtitle=self._connected_as(),
choices=[(key, menu[key]['text']) for key in menu_order if self.has_right(menu_droits[key], proprio)])
def todo(tag, menu, proprio, self_cont, cont):