From ab719caf27411274daaa511a4d8906bec8000573 Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Wed, 12 Oct 2016 11:07:13 +0200 Subject: [PATCH] bug de la poubelle --- Ihm/I_MCFACT.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Ihm/I_MCFACT.py b/Ihm/I_MCFACT.py index 348341f1..a2aba1ef 100644 --- a/Ihm/I_MCFACT.py +++ b/Ihm/I_MCFACT.py @@ -37,7 +37,10 @@ class MCFACT(I_MCCOMPO.MCCOMPO): return 0 def isoblig(self): - return self.definition.statut=='o' + if self.definition.statut != 'o' : return 0 + objet = self.parent.get_child(self.nom) + if len(objet) > 1 : return 0 + else : return 1 def getlabeltext(self): """ -- 2.39.2