Les clubs n'ont pas de caution
darcs-hash:20060109112358-d1718-d90e64302249f3d6ca27c61d753cdc6977fd9c9b.gz
This commit is contained in:
parent
53a33c5a86
commit
35bbac9f51
1 changed files with 3 additions and 4 deletions
|
@ -1842,9 +1842,8 @@ def menu_principal() :
|
||||||
# (expérimental)
|
# (expérimental)
|
||||||
|
|
||||||
# On récupère la liste des machines fixes
|
# On récupère la liste des machines fixes
|
||||||
if caution_ok and \
|
if (proprio.__class__ == club or (caution_ok and \
|
||||||
(proprio.__class__ == club or \
|
(not proprio.machines_fixes() or proprio.droits()))):
|
||||||
not proprio.machines_fixes() or proprio.droits()):
|
|
||||||
arg = u'--title "Nouvelle machine" '
|
arg = u'--title "Nouvelle machine" '
|
||||||
arg+= u'--menu "Type de machine ?" 0 0 0 '
|
arg+= u'--menu "Type de machine ?" 0 0 0 '
|
||||||
arg+= u'"Fixe" "Machine fixe" '
|
arg+= u'"Fixe" "Machine fixe" '
|
||||||
|
@ -1855,7 +1854,7 @@ def menu_principal() :
|
||||||
elif not caution_ok:
|
elif not caution_ok:
|
||||||
arg = u'--title "Nouvelle machine" '
|
arg = u'--title "Nouvelle machine" '
|
||||||
arg+= u'--menu " Caution non payée\n\n'
|
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'payé la caution." 0 0 0 '
|
||||||
arg+= u'"OK" "OK, on lui rajoute une machine wifi" '
|
arg+= u'"OK" "OK, on lui rajoute une machine wifi" '
|
||||||
arg+= u'"Annul" "Bon, on abandonne..." '
|
arg+= u'"Annul" "Bon, on abandonne..." '
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue