From: pascale.noyret Date: Tue, 9 May 2017 15:02:08 +0000 (+0200) Subject: appel 2 fois import-zone interdit X-Git-Tag: Salome_8_3_Hydro_2_0rc1~36 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=54b69e601b9ff0c8b96b86ed93341598a04daf3f;p=modules%2Feficas.git appel 2 fois import-zone interdit --- diff --git a/InterfaceQT4/typeNode.py b/InterfaceQT4/typeNode.py index 57992871..7ea4b363 100644 --- a/InterfaceQT4/typeNode.py +++ b/InterfaceQT4/typeNode.py @@ -75,6 +75,10 @@ class PopUpMenuNodeMinimal(object) : if self.editor.code in self.editor.appliEficas.mesScripts : self.dict_commandes_mesScripts=self.appliEficas.mesScripts[self.editor.code].dict_commandes else : return + + from Extensions import jdc_include + if isinstance(self.item.jdc,jdc_include.JDC_INCLUDE) : return + listeCommandes=self.dict_commandes_mesScripts[self.tree.currentItem().item.get_nom()] if type(listeCommandes) != tuple: listeCommandes=(listeCommandes,) numero=0 @@ -119,6 +123,8 @@ class PopUpMenuNodeMinimal(object) : listeCommandes=self.dict_commandes_mesScripts[nomCmd] commande=listeCommandes[numero] conditionValid=commande[4] + + if (nodeTraite.item.isvalid() == 0 and conditionValid == True): QMessageBox.warning( None, tr("item invalide"),