Listes tries.
darcs-hash:20060326161134-68412-75b3d8b6f611733c52d8e4734909bf687c9cc373.gz
This commit is contained in:
parent
7428178ab9
commit
1d691178e4
1 changed files with 21 additions and 1 deletions
|
@ -109,6 +109,10 @@ def adhers_brief(adhers) :
|
||||||
"""
|
"""
|
||||||
data = []
|
data = []
|
||||||
|
|
||||||
|
# Copie locale triée par (nom, prenom)
|
||||||
|
adhers = adhers[:]
|
||||||
|
adhers.sort(lambda x, y: cmp((x.nom(), x.prenom()), (y.nom(), y.prenom())))
|
||||||
|
|
||||||
for a in adhers:
|
for a in adhers:
|
||||||
## Etat administratif
|
## Etat administratif
|
||||||
ok = u'\x1b[1;32mo\x1b[1;0m'
|
ok = u'\x1b[1;32mo\x1b[1;0m'
|
||||||
|
@ -162,6 +166,10 @@ def machines_brief(machines) :
|
||||||
"""
|
"""
|
||||||
data = []
|
data = []
|
||||||
|
|
||||||
|
# Copie locale triée par nom
|
||||||
|
machines = machines[:]
|
||||||
|
machines.sort(lambda x, y: cmp(x.nom(), y.nom()))
|
||||||
|
|
||||||
for m in machines :
|
for m in machines :
|
||||||
t, bl = __bases_machines(m)
|
t, bl = __bases_machines(m)
|
||||||
|
|
||||||
|
@ -192,6 +200,10 @@ def clubs_brief(clubs) :
|
||||||
"""
|
"""
|
||||||
data = []
|
data = []
|
||||||
|
|
||||||
|
# Copie locale triée par Nom
|
||||||
|
clubs = clubs[:]
|
||||||
|
clubs.sort(lambda x, y: cmp(x.Nom(), y.Nom()))
|
||||||
|
|
||||||
for c in clubs :
|
for c in clubs :
|
||||||
## Etat administratif
|
## Etat administratif
|
||||||
ok = u'\x1b[1;32mo\x1b[1;0m'
|
ok = u'\x1b[1;32mo\x1b[1;0m'
|
||||||
|
@ -241,6 +253,10 @@ def list_machines(machines) :
|
||||||
"""
|
"""
|
||||||
data = []
|
data = []
|
||||||
|
|
||||||
|
# Copie locale triée par nom
|
||||||
|
machines = machines[:]
|
||||||
|
machines.sort(lambda x, y: cmp(x.nom(), y.nom()))
|
||||||
|
|
||||||
for m in machines :
|
for m in machines :
|
||||||
t, bl = __bases_machines(m)
|
t, bl = __bases_machines(m)
|
||||||
|
|
||||||
|
@ -266,6 +282,10 @@ def list_bornes(bornes) :
|
||||||
"""
|
"""
|
||||||
data = []
|
data = []
|
||||||
|
|
||||||
|
# Copie locale triée par nom
|
||||||
|
bornes = bornes[:]
|
||||||
|
bornes.sort(lambda x, y: cmp(x.nom(), y.nom()))
|
||||||
|
|
||||||
ok = u'\x1b[1;32mu\x1b[1;0m'
|
ok = u'\x1b[1;32mu\x1b[1;0m'
|
||||||
nok = u'\x1b[1;31md\x1b[1;0m'
|
nok = u'\x1b[1;31md\x1b[1;0m'
|
||||||
for b in bornes :
|
for b in bornes :
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue