[gest_crans_lc] On affiche si on utilise la base de test
This commit is contained in:
parent
5201e3dfdf
commit
f006ddb50c
7 changed files with 23 additions and 16 deletions
|
@ -42,7 +42,7 @@ def handle_exit_code(d, code):
|
|||
sys.exit(0)
|
||||
return False
|
||||
else:
|
||||
return True
|
||||
return True
|
||||
|
||||
class GestCrans(adherent.Dialog, club.Dialog, machine.Dialog):
|
||||
@tailcaller
|
||||
|
@ -119,6 +119,7 @@ class GestCrans(adherent.Dialog, club.Dialog, machine.Dialog):
|
|||
raise EnvironmentError("Je ne connais que des adherents et des club comme proprio")
|
||||
menu.update(menu_proprio)
|
||||
menu_order = menu_proprio_order + menu_order
|
||||
|
||||
def box(default_item=None):
|
||||
choices = []
|
||||
for key in menu_order:
|
||||
|
@ -139,7 +140,7 @@ class GestCrans(adherent.Dialog, club.Dialog, machine.Dialog):
|
|||
scrollbar=True,
|
||||
timeout=self.timeout,
|
||||
cancel_label="Quitter",
|
||||
backtitle=u"Vous êtes connecté en tant que %s" % self.conn.current_login,
|
||||
backtitle=self._connected_as(),
|
||||
choices=choices)
|
||||
|
||||
(code, tag) = self.handle_dialog(TailCall(handle_exit_code, self.dialog, self.dialog.DIALOG_ESC), box, tag)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue