Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nounous-archives
CransTicket
Commits
b0e7c1c6
Commit
b0e7c1c6
authored
May 20, 2015
by
Daniel STAN
Browse files
n'affiche le disclaimer qu'une fois
parent
95f785be
Changes
1
Hide whitespace changes
Inline
Side-by-side
dump.py
View file @
b0e7c1c6
...
...
@@ -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,22 +158,14 @@ def print_liste(liste):
printer
.
setDefault
()
# Restore printer to defaults
printer
.
printImage
(
crans_logo
,
True
)
first
=
True
for
entry
in
liste
:
show_entry
(
entry
)
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
)
printer
.
println
(
u
'Veuillez conserver ces'
.
encode
(
CODING
))
printer
.
println
(
u
'informations en lieu sûr.'
.
encode
(
CODING
))
printer
.
println
(
u
' '
.
encode
(
CODING
))
printer
.
println
(
u
' '
.
encode
(
CODING
))
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
))
printer
.
println
(
u
' '
.
encode
(
CODING
))
printer
.
feed
(
2
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment