Commit 45a9d9cd authored by Pierre-Elliott Bécue's avatar Pierre-Elliott Bécue
Browse files

[gest_crans_lc] Yes but no thanks.

parent f7230303
......@@ -288,7 +288,7 @@ class GestCrans(object):
def nyan(self, cont, *args, **kwargs):
"""
Nyan nyan nyan nyan nyan nyan nyan nyan nyan nyan nyan nyan nyan nyan nyan nyan
"""
"""
(lines, cols) = get_screen_size()
print "\033[48;5;17m"
print " "*(lines * cols)
......@@ -2860,7 +2860,7 @@ les valeurs valident sont :
'aMC': {'text':"Ajouter une machine à un club", 'callback': self.create_machine_club},
#'dC' : {'text':"Détruire un club", 'callback': self.delete_club},
'aKM': {'text':"Ajouter une machine à l'association", 'callback': self.create_machine_crans},
'' : {'text':"---------------------------------------",'callback': self.nyan},
'' : {'text':"---------------------------------------",'callback': None},
}
### Les clef qui n'existe pas sont toute renvoyé sur la clef ''
#menu_order = ["aA", "mA", "aMA", "dA", "", "mM", "dM", " ", "aC", "mC", "aMC", "dC", " ", "aKM"]
......@@ -2959,11 +2959,6 @@ def main(gc, cont=None):
# Si l'erreur n'est pas due à un timeout, on la propage
if time.time() - gc.dialog_last_access < gc.timeout:
raise
else:
try:
gc.nyan(TailCall(lambda:None))
except Continue:
pass
# Si on perd la connexion à ldap, on en ouvre une nouvelle
except ldap.SERVER_DOWN:
if gc.dialog.pause(title="Erreur", duration=10, height=9, width=50, text="La connection au serveur ldap à été perdue.\nTentative de reconnexion en cours…") == gc.dialog.DIALOG_OK:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment