From f0344d690c6bed0bcb8e4be640eb01f17fc487d8 Mon Sep 17 00:00:00 2001 From: eficas <> Date: Wed, 24 Nov 2004 13:28:43 +0000 Subject: [PATCH] PN bug --- Ihm/I_MCSIMP.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Ihm/I_MCSIMP.py b/Ihm/I_MCSIMP.py index 795c93ea..3469ee9d 100644 --- a/Ihm/I_MCSIMP.py +++ b/Ihm/I_MCSIMP.py @@ -433,12 +433,13 @@ class MCSIMP(I_OBJECT.OBJECT): verif_type=self.verif_type(val=v,cr=cr) # cas des tuples avec un ITEM_PARAMETRE if verif_type == 0: - new_val=[] - for i in v: + if type(v) == types.TupleType : + new_val=[] + for i in v: if i.__class__.__name__ != 'ITEM_PARAMETRE': new_val.append(i) - if new_val != [] : - verif_type=self.verif_type(val=new_val,cr=cr) + if new_val != [] : + verif_type=self.verif_type(val=new_val,cr=cr) valid = verif_type*self.verif_into(cr=cr)*self.verif_card(cr=cr) # # On verifie les validateurs s'il y en a et si necessaire (valid == 1) @@ -455,6 +456,7 @@ class MCSIMP(I_OBJECT.OBJECT): if valid == 0: if cr == 'oui' : self.cr.fatal(string.join( repr (self.valeur), " a un indice incorrect")) + print "hhhhhhhhhhhhhhhhhhh" self.set_valid(valid) return self.valid -- 2.39.2