Droppe ce qui concerne la carte d'étudiant, et les blacklistes obsolètes.
This commit is contained in:
parent
1c205fca93
commit
a09ef77d22
4 changed files with 36 additions and 92 deletions
|
@ -1403,30 +1403,18 @@ def set_admin(proprio):
|
|||
Définition de l'état administratif : carte d'étudiant et paiement.
|
||||
"""
|
||||
# Le proprietaire a-t-il une section carte d'étudiant (pas les clubs) ?
|
||||
has_card = proprio.idn != 'cid'
|
||||
potential_ma = proprio.idn != 'cid'
|
||||
|
||||
# Initialisation des différentes checkbox
|
||||
carte = on_off(proprio.carteEtudiant())
|
||||
carte_ok = on_off('c' in proprio.controle())
|
||||
if has_card: charte_MA = on_off(proprio.charteMA())
|
||||
if potential_ma:
|
||||
charte_MA = on_off(proprio.charteMA())
|
||||
|
||||
# Construction de la boîte de dialogue
|
||||
texte = []
|
||||
checklist = []
|
||||
|
||||
if has_card:
|
||||
if carte_ok == 'off' or iscontroleur:
|
||||
checklist.append(u'"1" "Carte d\'étudiant fournie" "%s"' %
|
||||
(carte,))
|
||||
else:
|
||||
texte.append(u'Carte vérifiée')
|
||||
if iscontroleur:
|
||||
if has_card:
|
||||
checklist.append(u'"2" "Carte d\'étudiant vérifiée" "%s"' % carte_ok)
|
||||
|
||||
# Carte et paiement de l'année précédente
|
||||
if (isbureau or isadm) and has_card:
|
||||
checklist.append(u'"3" "Charte des MA signee" "%s"' % charte_MA)
|
||||
if (isbureau or isadm) and potential_ma:
|
||||
checklist.append(u'"1" "Charte des MA signee" "%s"' % charte_MA)
|
||||
|
||||
if not checklist:
|
||||
# Il n'y a rien de modifiable
|
||||
|
@ -1434,7 +1422,6 @@ def set_admin(proprio):
|
|||
(proprio.Nom(), '\n'.join(texte)))
|
||||
return
|
||||
|
||||
|
||||
# Il y a qqch de modifiable, on construit la checklist
|
||||
arg = u'--title "Etat administratif de %s" ' % proprio.Nom()
|
||||
arg += u'--separate-output '
|
||||
|
@ -1444,21 +1431,10 @@ def set_admin(proprio):
|
|||
annul, result = dialog(arg)
|
||||
if annul: return 1
|
||||
|
||||
# Traitement
|
||||
if has_card:
|
||||
if potential_ma and (isadm or isbureau):
|
||||
if '1' in result:
|
||||
proprio.carteEtudiant(True)
|
||||
elif iscontroleur or carte_ok == 'off':
|
||||
proprio.carteEtudiant(False)
|
||||
if '2' in result:
|
||||
proprio.controle('+c')
|
||||
else:
|
||||
proprio.controle('-c')
|
||||
|
||||
if has_card:
|
||||
if '3' in result:
|
||||
proprio.charteMA(True)
|
||||
elif isadm or isbureau:
|
||||
else:
|
||||
proprio.charteMA(False)
|
||||
|
||||
def set_adhesion(proprio):
|
||||
|
@ -2179,7 +2155,7 @@ def modif_adher(adher):
|
|||
arg += u'--menu "Que souhaitez vous modifier ?" 0 0 0 '
|
||||
arg += u'"Connexion" "Mise à jour de l\'accès Internet (effectue la réadhésion si besoin)" '
|
||||
arg += u'"Adhesion" "Pour toute réadhésion *sans* connexion." '
|
||||
arg += u'"Administratif" "Pour renseigner la fournitire de la charte des MA, de la carte d\'étudiant." '
|
||||
arg += u'"Administratif" "Pour renseigner la fournitire de la charte des MA." '
|
||||
arg += u'"Etat-civil" "Nom, prénom" '
|
||||
if adher.chbre() == 'EXT':
|
||||
arg += u'"Adresse" "Déménagement" '
|
||||
|
@ -2661,7 +2637,7 @@ def menu_principal():
|
|||
arg += u'"" "---------------------------------------" "" '
|
||||
|
||||
arg += u'"aA" "Inscrire un nouvel adhérent" "" '
|
||||
arg += u'"mA" "Modifier l\'inscription d\'un adhérent" "Changer la chambre, la remarque, la section, la carte d\'étudiant ou précâbler." '
|
||||
arg += u'"mA" "Modifier l\'inscription d\'un adhérent" "Changer la chambre, la remarque, la section ou précâbler." '
|
||||
arg += u'"aMA" "Ajouter une machine à un adhérent" "" '
|
||||
arg += u'"dA" "Détruire un adhérent" "Suppression de l\'adhérent ainsi que de ses machines" '
|
||||
arg += u'"" "---------------------------------------" "" '
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue