From: eficas <> Date: Wed, 24 Nov 2004 13:28:43 +0000 (+0000) Subject: PN bug X-Git-Tag: CCAR_poursuite_deb~33 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f0344d690c6bed0bcb8e4be640eb01f17fc487d8;p=tools%2Feficas.git PN bug --- 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