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
56359491
Commit
56359491
authored
Dec 10, 2015
by
Gabriel Detraz
Browse files
Ajout d'un message de succès lors de l'edition des infos d'une machine ou proprio (club + adh)
parent
dd61853c
Changes
2
Hide whitespace changes
Inline
Side-by-side
gestion/dialog/machine.py
View file @
56359491
...
...
@@ -97,7 +97,12 @@ class Dialog(certificat.Dialog, blacklist.Dialog):
machine
.
validate_changes
()
machine
.
history_gen
()
machine
.
save
()
return
machine
self
.
dialog
.
msgbox
(
"Modificaton prise en compte avec succès"
,
title
=
"Édition des attributs de la machine %s"
%
machine
[
'host'
][
0
],
width
=
70
,
timeout
=
self
.
timeout
)
return
machine
def
create_machine
(
proprio
,
realm
,
attrs
):
# Dans ce cas, on a besoin d'un proprio et d'un realm pour déterminer le rid
...
...
gestion/dialog/proprio.py
View file @
56359491
...
...
@@ -896,7 +896,12 @@ class Dialog(machine.Dialog, blacklist.Dialog):
proprio
.
validate_changes
()
proprio
.
history_gen
()
proprio
.
save
()
return
proprio
self
.
dialog
.
msgbox
(
"Modificaton prise en compte avec succès"
,
title
=
"Modification des informations de %s %s"
%
(
proprio
.
get
(
'prenom'
,
[
''
])[
0
],
proprio
[
"nom"
][
0
]),
width
=
70
,
timeout
=
self
.
timeout
)
return
proprio
def
create_proprio
(
attrs
,
make_compte_crans
,
force_create
,
self_cont
,
cont
,
sorte
=
None
):
if
not
force_create
:
...
...
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