Factorisation

darcs-hash:20050421092145-d1718-a76da38bbce5f7e58fe8c0f830c2596873a4dee6.gz
This commit is contained in:
bernat 2005-04-21 11:21:45 +02:00
parent 89d80a06ed
commit e89706bfc3

View file

@ -26,17 +26,13 @@ for bat in bats + '?' :
# 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
adhs = db.search( 'paiement=ok&etudes!=Pers' )['adherent']
for adh in adhs :
if not adh.chbre()[0] in bats :
liste['?'].append( u'%s %s' % ( adh.nom(), adh.prenom() ) )
bat = adh.chbre()[0]
if not bat in bats :
bat = '?'
liste[bat].append( u'%s %s' % ( adh.nom(), adh.prenom() ) )
# création du fichier tex
#########################