From 35bbac9f5172e1b76ef84981d1ba1dcc2746254d Mon Sep 17 00:00:00 2001 From: bernat Date: Mon, 9 Jan 2006 12:23:58 +0100 Subject: [PATCH] Les clubs n'ont pas de caution darcs-hash:20060109112358-d1718-d90e64302249f3d6ca27c61d753cdc6977fd9c9b.gz --- gestion/gest_crans.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gestion/gest_crans.py b/gestion/gest_crans.py index 4c7ec2af..62c28273 100755 --- a/gestion/gest_crans.py +++ b/gestion/gest_crans.py @@ -1842,9 +1842,8 @@ def menu_principal() : # (expérimental) # On récupère la liste des machines fixes - if caution_ok and \ - (proprio.__class__ == club or \ - not proprio.machines_fixes() or proprio.droits()): + if (proprio.__class__ == club or (caution_ok and \ + (not proprio.machines_fixes() or proprio.droits()))): arg = u'--title "Nouvelle machine" ' arg+= u'--menu "Type de machine ?" 0 0 0 ' arg+= u'"Fixe" "Machine fixe" ' @@ -1855,7 +1854,7 @@ def menu_principal() : elif not caution_ok: arg = u'--title "Nouvelle machine" ' arg+= u'--menu " Caution non payée\n\n' - arg+= u'Pour pouvoir incrire une machine fixe, il faut avoir' + arg+= u'Pour pouvoir incrire une machine fixe, il faut avoir ' arg+= u'payé la caution." 0 0 0 ' arg+= u'"OK" "OK, on lui rajoute une machine wifi" ' arg+= u'"Annul" "Bon, on abandonne..." '