From 64daf7afe18f3f17df169ac3176436bf072f99d0 Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Mon, 16 Feb 2015 15:03:34 +0100 Subject: [PATCH] gest_crans_lc: fonction adh-related in adherent.py --- gestion/dialog/adherent.py | 4 ++++ gestion/dialog/machine.py | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/gestion/dialog/adherent.py b/gestion/dialog/adherent.py index 0845f049..f806060b 100644 --- a/gestion/dialog/adherent.py +++ b/gestion/dialog/adherent.py @@ -111,6 +111,10 @@ class Dialog(proprio.Dialog): codes_todo=[([self.dialog.DIALOG_OK], todo, [tag, menu, adherent, cont_ret])] ) + def modif_adherent_attributs(self, adherent, attr, cont): + """Juste un raccourci vers edit_attributs spécifique aux adherents""" + return self.edit_attributs(obj=adherent, update_obj='adherent', attr=attr, title="Modification de %s %s" % (adherent['prenom'][0], adherent['nom'][0]), cont=cont) + def adherent_administratif(self, cont, adherent, default_item=None): """Menu de gestion du compte crans d'un proprio""" diff --git a/gestion/dialog/machine.py b/gestion/dialog/machine.py index 4285b36b..329eb9c3 100644 --- a/gestion/dialog/machine.py +++ b/gestion/dialog/machine.py @@ -164,11 +164,6 @@ class Dialog(certificat.Dialog, blacklist.Dialog): """Juste un raccourci vers edit_attributs spécifique aux machines""" return self.edit_attributs(obj=machine, update_obj='machine', attr=attr, title="Modification de la machine %s" % machine['host'][0], cont=cont) - def modif_adherent_attributs(self, adherent, attr, cont): - """Juste un raccourci vers edit_attributs spécifique aux adherents""" - return self.edit_attributs(obj=adherent, update_obj='adherent', attr=attr, title="Modification de %s %s" % (adherent['prenom'][0], adherent['nom'][0]), cont=cont) - - def modif_machine_boolean(self, machine, cont): """Juste un raccourci vers edit_boolean_attributs spécifique aux machines""" a = attributs