]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
Finalisation
authorAndré Ribes <andre.ribes@edf.fr>
Wed, 9 Mar 2011 14:57:15 +0000 (15:57 +0100)
committerAndré Ribes <andre.ribes@edf.fr>
Wed, 9 Mar 2011 14:57:15 +0000 (15:57 +0100)
Print en moins
Bug destruction en moins

src/daSalome/daGUI/daEficasWrapper/adaoEficasWrapper.py
src/daSalome/daGUI/daGuiImpl/adaoCase.py
src/daSalome/daGUI/daGuiImpl/adaoGuiHelper.py
src/daSalome/daGUI/daGuiImpl/adaoGuiManager.py

index d48d2b6142b417f67474447cc10514aacb1c0bd7..989f63cd460c68894ddf938fb8206b985676e650 100644 (file)
@@ -128,11 +128,9 @@ class AdaoEficasWrapper(eficasSalome.MyEficas):
         if res != 2: # l utilsateur a annule
           if close_editor.fichier is None:
             # Cas fichier vide
-            print "cas fichier vide"
             self.notifyObserver(EficasEvent.EVENT_TYPES.CLOSE, callbackId=close_editor)
           else:
             # Cas fichier existant
-            print "cas fichier existant"
             self.notifyObserver(EficasEvent.EVENT_TYPES.CLOSE, callbackId=close_editor)
 
 #######
index cd0beb6f6cb10f7d83dbaf98902e796488fd360c..527e51f481dfa4fc5b5f78aff2b803c0903174e2 100644 (file)
@@ -46,7 +46,6 @@ class AdaoCase:
     if editor is not self.eficas_editor:
       self.eficas_editor = editor
       # Connect to the jdc
-      print self.eficas_editor.jdc
       CONNECTOR.Connect(self.eficas_editor.jdc, "valid", self.editorValidEvent, ())
 
   # Rq on notera que l'on utilise isvalid dans isOk
index 944cb782809de927e7916f2a60fea0e1b390c6d8..e93f08551906e47208b9bbaad645646e56d1613a 100644 (file)
@@ -66,7 +66,6 @@ def refreshObjectBrowser():
         salome.sg.updateObjBrowser(0)
 
 def selectItem(salomeStudyItem):
-  print "selectItem", salomeStudyItem
   if salome.sg is not None:
     salome.sg.ClearIObjects()
     salome.sg.AddIObject(salomeStudyItem)
index b58b278fac344ecb87ab86df9742d226dabba7fb..766903af581657839925f487d75ced53b43509ff 100644 (file)
@@ -275,14 +275,16 @@ class AdaoCaseManager(EficasObserver):
         break
 
   def _processEficasCloseEvent(self, eficasWrapper, eficasEvent):
+    adaoLogger.debug("Destruction d'un cas")
     editor = eficasEvent.callbackId
     # Recuperation du cas
     adao_case = self.cases[editor]
     # Suppression de l'objet dans l'étude
     adaoStudyEditor.removeItem(adao_case.salome_study_id, adao_case.salome_study_item)
-    adaoGuiHelper.refreshObjectBrowser()
     # Suppression du cas
-    del self.cases[editor]
+    self.cases.pop(editor)
+    # Refresh GUI -> appelle currentSelectionChanged()
+    adaoGuiHelper.refreshObjectBrowser()
 
 #######
 #