Factorisation
darcs-hash:20050421092145-d1718-a76da38bbce5f7e58fe8c0f830c2596873a4dee6.gz
This commit is contained in:
parent
89d80a06ed
commit
e89706bfc3
1 changed files with 4 additions and 8 deletions
|
@ -26,17 +26,13 @@ for bat in bats + '?' :
|
||||||
# remplissage de la liste
|
# remplissage de la liste
|
||||||
#########################
|
#########################
|
||||||
|
|
||||||
# les batiments
|
|
||||||
for bat in bats :
|
|
||||||
adhs = db.search( 'chbre=%s*&paiement=ok' % bat )['adherent']
|
|
||||||
for adh in adhs :
|
|
||||||
liste[bat].append( u'%s %s' % ( adh.nom(), adh.prenom() ) )
|
|
||||||
|
|
||||||
# les extérieurs
|
# les extérieurs
|
||||||
adhs = db.search( 'paiement=ok&etudes!=Pers' )['adherent']
|
adhs = db.search( 'paiement=ok&etudes!=Pers' )['adherent']
|
||||||
for adh in adhs :
|
for adh in adhs :
|
||||||
if not adh.chbre()[0] in bats :
|
bat = adh.chbre()[0]
|
||||||
liste['?'].append( u'%s %s' % ( adh.nom(), adh.prenom() ) )
|
if not bat in bats :
|
||||||
|
bat = '?'
|
||||||
|
liste[bat].append( u'%s %s' % ( adh.nom(), adh.prenom() ) )
|
||||||
|
|
||||||
# création du fichier tex
|
# création du fichier tex
|
||||||
#########################
|
#########################
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue