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) :
|
def titre (bat) :
|
||||||
if bat == 'P' :
|
if bat == 'P' :
|
||||||
return 'Pavillon des jardins'
|
return 'Pavillon des jardins'
|
||||||
elif bat == '?' :
|
elif bat == '?' :
|
||||||
return 'Autres (extérieurs et chambres invalides)'
|
return 'Autres (extérieurs et chambres invalides)'
|
||||||
else :
|
else :
|
||||||
return 'Bâtiment %s' % bat
|
return 'Bâtiment %s' % bat
|
||||||
|
|
||||||
# création de la liste vide
|
# création de la liste vide
|
||||||
###########################
|
###########################
|
||||||
|
@ -30,13 +30,13 @@ for bat in bats + '?' :
|
||||||
for bat in bats :
|
for bat in bats :
|
||||||
adhs = db.search( 'chbre=%s*&paiement=ok' % bat )['adherent']
|
adhs = db.search( 'chbre=%s*&paiement=ok' % bat )['adherent']
|
||||||
for adh in adhs :
|
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
|
# les extérieurs
|
||||||
adhs = db.search( 'paiement=ok' )['adherent']
|
adhs = db.search( 'paiement=ok' )['adherent']
|
||||||
for adh in adhs :
|
for adh in adhs :
|
||||||
if not adh.chbre()[0] in bats :
|
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
|
# création du fichier tex
|
||||||
#########################
|
#########################
|
||||||
|
@ -68,7 +68,7 @@ for bat in bats + '?' :
|
||||||
# ajout des adhérents
|
# ajout des adhérents
|
||||||
liste[bat].sort()
|
liste[bat].sort()
|
||||||
for adh in liste[bat] :
|
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
|
# fin du batiment
|
||||||
print "\\end{longtable}\n"
|
print "\\end{longtable}\n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue