[dialog] On transmet l'objet proprio éditer au menu parent en quittant le menu compte
This commit is contained in:
parent
83512121a2
commit
91fc1359b0
2 changed files with 4 additions and 3 deletions
|
@ -279,7 +279,7 @@ class Dialog(machine.Dialog, blacklist.Dialog):
|
|||
codes_todo=[([self.dialog.DIALOG_OK], todo, [output, shell, shells, proprio, self_cont, cont])]
|
||||
)
|
||||
|
||||
def proprio_compte(self, proprio, cont, default_item=None):
|
||||
def proprio_compte(self, proprio, cont, default_item=None, update_obj='proprio'):
|
||||
"""Menu de gestion du compte crans d'un proprio"""
|
||||
has_compte = 'cransAccount' in proprio['objectClass']
|
||||
disabled_compte = has_compte and 0 in proprio['shadowExpire']
|
||||
|
@ -347,8 +347,9 @@ class Dialog(machine.Dialog, blacklist.Dialog):
|
|||
raise EnvironmentError("Il n'y a ni champ 'attribut' ni 'callback' pour le tag %s" % tag)
|
||||
|
||||
|
||||
cont(**{update_obj:proprio})
|
||||
(code, tag) = self.handle_dialog(cont, box, default_item)
|
||||
self_cont = TailCall(self.proprio_compte, proprio=proprio, cont=cont, default_item=tag_translate.get(tag, tag))
|
||||
self_cont = TailCall(self.proprio_compte, proprio=proprio, cont=cont, default_item=tag_translate.get(tag, tag), update_obj=update_obj)
|
||||
return self.handle_dialog_result(
|
||||
code=code,
|
||||
output=tag,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue