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
Benjamin Graillot
scripts
Commits
cf76003c
Commit
cf76003c
authored
Dec 03, 2015
by
Gabriel Detraz
Browse files
Pas de ticket si pas de compte crans
parent
16777e39
Changes
1
Hide whitespace changes
Inline
Side-by-side
gestion/dialog/adherent.py
View file @
cf76003c
...
...
@@ -590,12 +590,13 @@ class Dialog(proprio.Dialog):
if
self
.
confirm_item
(
adherent
,
title
=
"Créer l'adhérent suivant ?"
):
adherent
.
validate_changes
()
adherent
.
create
()
if
self
.
dialog
.
yesno
(
"Imprimer un ticket avec un mot de passe attribué automatiquement ?"
,
title
=
"Impression de ticket pour %s %s"
%
(
adherent
.
get
(
'prenom'
,
[
''
])[
0
],
adherent
[
"nom"
][
0
]),
timeout
=
self
.
timeout
)
==
self
.
dialog
.
DIALOG_OK
:
subprocess
.
call
([
'/usr/scripts/cransticket/dump_creds.py'
,
'--forced'
,
'--pass'
,
'aid=%s'
%
adherent
[
'aid'
][
0
]])
self
.
display_item
(
adherent
,
"Impression du ticket en cours ..."
)
if
make_compte_crans
:
if
self
.
dialog
.
yesno
(
"Imprimer un ticket avec un mot de passe attribué automatiquement ?"
,
title
=
"Impression de ticket pour %s %s"
%
(
adherent
.
get
(
'prenom'
,
[
''
])[
0
],
adherent
[
"nom"
][
0
]),
timeout
=
self
.
timeout
)
==
self
.
dialog
.
DIALOG_OK
:
subprocess
.
call
([
'/usr/scripts/cransticket/dump_creds.py'
,
'--forced'
,
'--pass'
,
'aid=%s'
%
adherent
[
'aid'
][
0
]])
self
.
display_item
(
adherent
,
"Impression du ticket en cours ..."
)
else
:
adherent
=
None
return
adherent
...
...
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