]> SALOME platform Git repositories - modules/eficas.git/commitdiff
Salome HOME
autorisation sélection groupes de maille sans géométrie principale ( bug id=136 )
authorsalome <>
Mon, 17 Jul 2006 10:37:08 +0000 (10:37 +0000)
committersalome <>
Mon, 17 Jul 2006 10:37:08 +0000 (10:37 +0000)
src/EFICASGUI/eficasSalome.py

index a252c5664eb517aec5dafcf19b20f8bf8c1e0567..2b45379027e0403c7b61cbe081614410606a4436 100644 (file)
@@ -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