diff --git a/gestion/gest_crans.py b/gestion/gest_crans.py index 9c5b7810..f58b6f9b 100755 --- a/gestion/gest_crans.py +++ b/gestion/gest_crans.py @@ -862,8 +862,8 @@ def set_admin(proprio) : if iscontroleur: txt = [] if len(txt) == 2 : - # Il n'y a rien -Aà demander-b - dialog('--title "Champs non modifiables" --msgbox "%s\n" 0 0 ' % '\n'.join(txt)) + # Il n'y a rien à demander + dialog(u'--title "État administratif de %s non modifiable" --msgbox "%s\n" 0 0 ' % (proprio.Nom(), '\n'.join(txt))) return arg = u'--title "Etat administratif de %s" ' % proprio.Nom() @@ -882,8 +882,8 @@ def set_admin(proprio) : arg+= u'"3" "Adhésion %d/%d réglée et charte signée (précâblage)" "%s" ' % (ann_scol+1,ann_scol+2,precab) if iscontroleur: - arg += u'"4" "Vérification de la cotisation effectuée" "%s" ' % paid_ok - arg += u'"5" "Vérification de la carte d\'étudiant effectuée" "%s" ' % carte_ok + if card: arg += u'"4" "Vérification de la carte d\'étudiant effectuée" "%s" ' % carte_ok + arg += u'"5" "Vérification de la cotisation/charte effectuée" "%s" ' % paid_ok annul , result = dialog(arg) if annul : return 1 @@ -919,11 +919,12 @@ def set_admin(proprio) : if '3\n' in result : proprio.paiement(ann_scol+1) elif paid_ok == 'off' or iscontroleur: proprio.paiement(-ann_scol-1) - if '4\n' in result: proprio.controle('+p') - elif iscontroleur: proprio.controle('-p') + if card: + if '4\n' in result: proprio.controle('+c') + elif iscontroleur: proprio.controle('-c') - if '5\n' in result: proprio.controle('+c') - elif iscontroleur: proprio.controle('-c') + if '5\n' in result: proprio.controle('+p') + elif iscontroleur: proprio.controle('-p') ############################################################### ## Fonctions de remplissage ou modification des paramètres club diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index ed74f08f..22365ce6 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -21,7 +21,7 @@ from time import sleep,localtime try: from secrets import ldap_password, ldap_auth_dn except: - sys.stdout.write(coul('Warning : impossible de lire le fichier de secret !','jaune')) + sys.stdout.write(coul('Warning : impossible de lire le fichier de secret !\n','jaune')) sleep(2) ldap_password = '' ldap_auth_dn = ''