From 41a7f84bd2931a56301aeecac7d35b57770d68e7 Mon Sep 17 00:00:00 2001 From: Pascale Noyret Date: Tue, 26 Jan 2010 09:37:29 +0000 Subject: [PATCH] *** empty log message *** --- src/EFICASGUI/eficasSalome.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/EFICASGUI/eficasSalome.py b/src/EFICASGUI/eficasSalome.py index 9a6d4833..0638ddcc 100644 --- a/src/EFICASGUI/eficasSalome.py +++ b/src/EFICASGUI/eficasSalome.py @@ -108,6 +108,7 @@ class MyEficas( qtEficas.Appli ): if not object: myComponent = salome.lcc.FindOrLoadComponent("FactoryServer", composant) SCom = self.editor.study.FindComponent( composant ) + print myComponent , SCom self.editor.builder.LoadWith( SCom , myComponent ) object = mySO.GetObject() if not object : @@ -225,10 +226,11 @@ class MyEficas( qtEficas.Appli ): tGeo=self.ChercheType(shape) if not tGeo : return name, msgError - if kwType == "GROUP_NO" and tGeo != "VERTEX": - msgError = msgWarningGroupNoSelection - elif kwType == "GROUP_MA" and tGeo == "VERTEX": - name, msgError = '', msgErrorGroupMaSelection + if kwType == "GROUP_NO" and str(tGeo) != "VERTEX": + name,msgError = '',"la selection n est pas un Vertex" + return name, msgError + elif kwType == "GROUP_MA" and str(tGeo) == "VERTEX": + name, msgError = '', "la selection n est pas un groupe de maille" return name, msgError mainShapeEntry = self.getMainShapeEntry( entry ) -- 2.39.2