Commit 2af454a7 authored by Daniel Stan's avatar Daniel Stan

gest_crans: s'adapte à dialog (plus de '\n')

Désormais dialog semble renvoyer des listes de chaînes déjà strippées.
parent 33fe1b91
......@@ -688,7 +688,7 @@ def set_actif(adher):
if annul: return 1
# Traitement
if '1\n' in result:
if '1' in result:
adher.active(False)
else:
adher.active(True)
......@@ -1025,7 +1025,7 @@ def set_vente(proprio):
f = Facture(proprio)
# Traitement
for key in items.keys():
if '%s\n' % key in result:
if key in result:
while 1:
if items[key]['pu'] != '*':
arg = u'--title "Nombre de %s ?" ' % items[key]['designation']
......@@ -1358,17 +1358,17 @@ def set_admin(proprio):
# Traitement
if has_card:
if '1\n' in result:
if '1' in result:
proprio.carteEtudiant(True)
elif iscontroleur or carte_ok == 'off':
proprio.carteEtudiant(False)
if '2\n' in result:
if '2' in result:
proprio.controle('+c')
else:
proprio.controle('-c')
if has_card:
if '3\n' in result:
if '3' in result:
proprio.charteMA(True)
elif isadm or isbureau:
proprio.charteMA(False)
......
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