adaoLogger.debug("currentSelectionChanged")
salomeStudyItem = adaoGuiHelper.getSelectedItem()
if salomeStudyItem is not None:
- for case_editor, adao_case in list(self.cases.items()):
+ for case_editor, adao_case in self.cases.items():
if adao_case.salome_study_item.GetID() == salomeStudyItem.GetID():
self.eficas_manager.selectCase(adao_case.eficas_editor)
break
et la selection dans l'etude SALOME
"""
editor = eficasEvent.callbackId
- for case_editor, adao_case in list(self.cases.items()):
+ for case_editor, adao_case in self.cases.items():
if case_editor is editor:
adaoGuiHelper.selectItem(adao_case.salome_study_item.GetID())
break
editor = self.eficas_manager.getCurrentEditor()
# 2: sync with SALOME GUI is a tab is opened
if editor:
- for case_editor, adao_case in list(self.cases.items()):
+ for case_editor, adao_case in self.cases.items():
if case_editor is editor:
adaoGuiHelper.selectItem(adao_case.salome_study_item.GetID())
break
# dans le GUI d'Eficas
self.harmonizeSelectionFromEficas()
salomeStudyItem = adaoGuiHelper.getSelectedItem()
- for case_name, adao_case in list(self.cases.items()):
+ for case_name, adao_case in self.cases.items():
if adao_case.salome_study_item.GetID() == salomeStudyItem.GetID():
if not adao_case.isOk():
adaoLogger.debug("Cas invalide, donc il est sauvegarde, mais il ne peut pas etre exporte vers YACS ensuite")
# dans le GUI d'Eficas
self.harmonizeSelectionFromEficas()
salomeStudyItem = adaoGuiHelper.getSelectedItem()
- for case_name, adao_case in list(self.cases.items()):
+ for case_name, adao_case in self.cases.items():
if adao_case.salome_study_item.GetID() == salomeStudyItem.GetID():
if not adao_case.isOk():
adaoLogger.debug("Cas invalide, donc il est sauvegarde, mais il ne peut pas etre exporte vers YACS ensuite")
# dans le GUI d'Eficas
self.harmonizeSelectionFromEficas()
salomeStudyItem = adaoGuiHelper.getSelectedItem()
- for case_name, adao_case in list(self.cases.items()):
+ for case_name, adao_case in self.cases.items():
if adao_case.salome_study_item.GetID() == salomeStudyItem.GetID():
self.eficas_manager.adaoFileClose(adao_case)
break
adaoLogger.debug("Validation du cas par un rapport sur le JDC")
self.harmonizeSelectionFromEficas()
salomeStudyItem = adaoGuiHelper.getSelectedItem()
- for case_name, adao_case in list(self.cases.items()):
+ for case_name, adao_case in self.cases.items():
if adao_case.salome_study_item.GetID() == salomeStudyItem.GetID():
msg = adao_case.validationReportforJDC()
adaoGuiHelper.gui_information(SalomePyQt.SalomePyQt().getDesktop(), msg)
adaoLogger.debug("Validation du cas par un rapport sur le JDC")
self.harmonizeSelectionFromEficas()
salomeStudyItem = adaoGuiHelper.getSelectedItem()
- for case_name, adao_case in list(self.cases.items()):
+ for case_name, adao_case in self.cases.items():
if adao_case.salome_study_item.GetID() == salomeStudyItem.GetID():
msg = adao_case.showTreeAdaoCase()
break
# dans le GUI d'Eficas
self.harmonizeSelectionFromEficas()
salomeStudyItem = adaoGuiHelper.getSelectedItem()
- for case_name, adao_case in list(self.cases.items()):
+ for case_name, adao_case in self.cases.items():
if adao_case.salome_study_item.GetID() == salomeStudyItem.GetID():
if adao_case.isOk():
msg = adao_case.exportCaseToYACS()