Detabification (et j'ai fait un rapport de bugs car jed casse les
couilles faire n'importe quoi) darcs-hash:20050421091515-d1718-5e103242864f07f16ef1e01dbe005fffac50656f.gz
This commit is contained in:
parent
aa611907c4
commit
3f887aa711
1 changed files with 7 additions and 7 deletions
|
@ -10,11 +10,11 @@ bats = 'ABCGHIJMP'
|
|||
|
||||
def titre (bat) :
|
||||
if bat == 'P' :
|
||||
return 'Pavillon des jardins'
|
||||
return 'Pavillon des jardins'
|
||||
elif bat == '?' :
|
||||
return 'Autres (extérieurs et chambres invalides)'
|
||||
return 'Autres (extérieurs et chambres invalides)'
|
||||
else :
|
||||
return 'Bâtiment %s' % bat
|
||||
return 'Bâtiment %s' % bat
|
||||
|
||||
# création de la liste vide
|
||||
###########################
|
||||
|
@ -30,13 +30,13 @@ for bat in bats + '?' :
|
|||
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() ) )
|
||||
liste[bat].append( u'%s %s' % ( adh.nom(), adh.prenom() ) )
|
||||
|
||||
# les extérieurs
|
||||
adhs = db.search( 'paiement=ok' )['adherent']
|
||||
for adh in adhs :
|
||||
if not adh.chbre()[0] in bats :
|
||||
liste['?'].append( u'%s %s' % ( adh.nom(), adh.prenom() ) )
|
||||
liste['?'].append( u'%s %s' % ( adh.nom(), adh.prenom() ) )
|
||||
|
||||
# création du fichier tex
|
||||
#########################
|
||||
|
@ -68,7 +68,7 @@ for bat in bats + '?' :
|
|||
# ajout des adhérents
|
||||
liste[bat].sort()
|
||||
for adh in liste[bat] :
|
||||
print (u'%s& \\\\\n\\hline' % adh).encode('iso 8859-15')
|
||||
print (u'%s& \\\\\n\\hline' % adh).encode('iso 8859-15')
|
||||
|
||||
# fin du batiment
|
||||
print "\\end{longtable}\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue