From: salome <> Date: Mon, 17 Jul 2006 10:37:08 +0000 (+0000) Subject: autorisation sélection groupes de maille sans géométrie principale ( bug id=136 ) X-Git-Tag: essai1~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=55b3dec33d51ee7993cd0bb7e41a63b0295587ac;p=modules%2Feficas.git autorisation sélection groupes de maille sans géométrie principale ( bug id=136 ) --- diff --git a/src/EFICASGUI/eficasSalome.py b/src/EFICASGUI/eficasSalome.py index a252c566..2b453790 100644 --- a/src/EFICASGUI/eficasSalome.py +++ b/src/EFICASGUI/eficasSalome.py @@ -311,14 +311,21 @@ class MyEficas( Tkinter.Toplevel, eficas.EFICAS ): if selectedMainShapeEntry: #test 2) if not self.mainShapeEntries.has_key( jdcID ): - self.mainShapeEntries[ jdcID ] = selectedMainShapeEntry + self.mainShapeEntries[ jdcID ] = selectedMainShapeEntry + name = studyManager.palStudy.getName( selectedMainShapeEntry ) + msgError = msgMainShapeSelection + name if selectedMainShapeEntry == self.mainShapeEntries[ jdcID ]: name = studyManager.palStudy.getName( selectedEntry ) #ok test 2) else: if not self.mainShapeNames.has_key( jdcID ): self.mainShapeNames[ jdcID ] = studyManager.palStudy.getName( self.mainShapeEntries[ jdcID ] ) - msgError = msgMeshGroupBadMainShape + self.mainShapeNames[ jdcID ] + msgError = msgMeshGroupBadMainShape + self.mainShapeNames[ jdcID ] + else: + # on authorise quand même les groupes de maillage ne faisant + # pas référence à une géométrie principale (dixit CS_CBO ) + name = studyManager.palStudy.getName( selectedEntry ) + return name, msgError