Ajout d'un controle paiement et carte d'tudiant pour le trez

Fait par Stphane.

darcs-hash:20051030235747-41617-d58682c07214caef5e2d9b94691f8ed6e2370b61.gz
This commit is contained in:
pauget 2005-10-31 00:57:47 +01:00
parent 7483b3f862
commit 1a6bbb2604
3 changed files with 85 additions and 19 deletions

View file

@ -109,16 +109,21 @@ def adhers_brief(adhers) :
for a in adhers :
## Etat administratif
ok = u'\x1b[1;32mo\x1b[1;0m'
ook = u'\x1b[1;32mO\x1b[1;0m'
nok = u'\x1b[1;31mn\x1b[1;0m'
# Paiement
if ann_scol in a.paiement() : paid = ok
if ann_scol in a.paiement():
if 'p' in a.controle(): paid = ook
else: paid = ok
else : paid = nok
# Précablage
if ann_scol+1 in a.paiement() : paid = coul(paid,'f_vert')
# Carte d'étudiant
if ann_scol in a.carteEtudiant() : carte = ok
if ann_scol in a.carteEtudiant():
if 'c' in a.controle(): carte = ook
else: carte = ok
else : carte = nok
machines = ''
@ -180,11 +185,14 @@ def clubs_brief(clubs) :
for c in clubs :
## Etat administratif
ok = u'\x1b[1;32mo\x1b[1;0m'
ook = u'\x1b[1;32mO\x1b[1;0m'
nok = u'\x1b[1;31mn\x1b[1;0m'
# Paiement
if ann_scol in c.paiement() : paid = ok
if ann_scol in c.paiement():
if 'p' in c.controle(): paid = ook
else: paid = ok
else : paid = nok
# Précablage
if ann_scol+1 in c.paiement() : paid = coul(paid,'f_vert')
@ -369,6 +377,7 @@ def adher_details(adher) :
for an in adher.paiement() : g += u" %i-%i" % ( an, an+1 )
if len(g) > 35 : f += '\n\t'
f += g
if 'p' in adher.controle(): f += coul(u' (OK)', 'vert')
f += u'\n'
# Cartes d'étudiant fournie
@ -381,6 +390,7 @@ def adher_details(adher) :
for an in adher.carteEtudiant() : g += u" %i-%i" % ( an, an+1 )
if len(g) > 25 : f += '\n\t'
f += g
if 'c' in adher.controle(): f += coul(u' (OK)', 'vert')
f += u'\n'
f += _blacklist(adher)
@ -565,6 +575,7 @@ def club_details(club) :
for an in club.paiement() : g += " %i-%i" % ( an, an+1 )
if len(g) > 35 : f += '\n\t'
f += g
if 'p' in club.controle(): f += coul(u' (OK)', 'vert')
f += '\n'
login = club.compte()