n'affiche le disclaimer qu'une fois
This commit is contained in:
parent
95f785be7c
commit
b0e7c1c66e
1 changed files with 11 additions and 15 deletions
18
dump.py
18
dump.py
|
@ -37,6 +37,10 @@ def print_carac(text, value):
|
|||
|
||||
|
||||
def show_entry(entry):
|
||||
# Si le champ fid est présent, c'est une facture, on utilise une fonction
|
||||
# annexe
|
||||
if 'fid' in entry.keys():
|
||||
show_facture(entry)
|
||||
printer.justify('C')
|
||||
printer.underlineOn()
|
||||
if 'host' in entry:
|
||||
|
@ -154,18 +158,10 @@ def print_liste(liste):
|
|||
printer.setDefault() # Restore printer to defaults
|
||||
printer.printImage(crans_logo, True)
|
||||
|
||||
first = True
|
||||
|
||||
for m in liste:
|
||||
#if not first:
|
||||
# print_carac('','')
|
||||
first = False
|
||||
|
||||
if 'fid' in m.keys():
|
||||
show_facture(m) # Si le champ fid est présent, c'est une facture -> on utilise la fonction adaptée
|
||||
else:
|
||||
show_entry(m)
|
||||
for entry in liste:
|
||||
show_entry(entry)
|
||||
|
||||
if any('secret' in entry or 'pass' in entry for entry in liste):
|
||||
printer.println(u'Veuillez conserver ces'.encode(CODING))
|
||||
printer.println(u'informations en lieu sûr.'.encode(CODING))
|
||||
printer.println(u' '.encode(CODING))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue