Les clubs n'ont pas de carte d'tudiant (par Stphane).
darcs-hash:20051101170321-41617-e49a9da70a9b2daa54d8da80ada13195da98bd2d.gz
This commit is contained in:
parent
0ab7852e1f
commit
97f5afab47
2 changed files with 10 additions and 9 deletions
|
@ -862,8 +862,8 @@ def set_admin(proprio) :
|
||||||
if iscontroleur: txt = []
|
if iscontroleur: txt = []
|
||||||
|
|
||||||
if len(txt) == 2 :
|
if len(txt) == 2 :
|
||||||
# Il n'y a rien -Aà demander-b
|
# Il n'y a rien à demander
|
||||||
dialog('--title "Champs non modifiables" --msgbox "%s\n" 0 0 ' % '\n'.join(txt))
|
dialog(u'--title "État administratif de %s non modifiable" --msgbox "%s\n" 0 0 ' % (proprio.Nom(), '\n'.join(txt)))
|
||||||
return
|
return
|
||||||
|
|
||||||
arg = u'--title "Etat administratif de %s" ' % proprio.Nom()
|
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)
|
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:
|
if iscontroleur:
|
||||||
arg += u'"4" "Vérification de la cotisation effectuée" "%s" ' % paid_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 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)
|
annul , result = dialog(arg)
|
||||||
if annul : return 1
|
if annul : return 1
|
||||||
|
@ -919,12 +919,13 @@ def set_admin(proprio) :
|
||||||
if '3\n' in result : proprio.paiement(ann_scol+1)
|
if '3\n' in result : proprio.paiement(ann_scol+1)
|
||||||
elif paid_ok == 'off' or iscontroleur: proprio.paiement(-ann_scol-1)
|
elif paid_ok == 'off' or iscontroleur: proprio.paiement(-ann_scol-1)
|
||||||
|
|
||||||
if '4\n' in result: proprio.controle('+p')
|
if card:
|
||||||
elif iscontroleur: proprio.controle('-p')
|
if '4\n' in result: proprio.controle('+c')
|
||||||
|
|
||||||
if '5\n' in result: proprio.controle('+c')
|
|
||||||
elif iscontroleur: 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
|
## Fonctions de remplissage ou modification des paramètres club
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ from time import sleep,localtime
|
||||||
try:
|
try:
|
||||||
from secrets import ldap_password, ldap_auth_dn
|
from secrets import ldap_password, ldap_auth_dn
|
||||||
except:
|
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)
|
sleep(2)
|
||||||
ldap_password = ''
|
ldap_password = ''
|
||||||
ldap_auth_dn = ''
|
ldap_auth_dn = ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue