From: salome <> Date: Fri, 21 Jul 2006 13:57:36 +0000 (+0000) Subject: évolution: X-Git-Tag: essai1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b7b0af1b06c9bd0f1e86e79b5812f31f7324aa23;p=modules%2Feficas.git évolution: on place les JDC dans l'arbre d'étude sous le répertoire AsterFile ( pour un JDC ASTER ) ou HomardFile ( pour un JDC HOMARD ) --- diff --git a/src/EFICASGUI/eficasSalome.py b/src/EFICASGUI/eficasSalome.py index 6f258a71..55887294 100644 --- a/src/EFICASGUI/eficasSalome.py +++ b/src/EFICASGUI/eficasSalome.py @@ -459,22 +459,31 @@ class MyEficas( Tkinter.Toplevel, eficas.EFICAS ): return ok, msgError fileType = { 'ASTER': studyManager.FICHIER_EFICAS_ASTER, - 'HOMARD': studyManager.FICHIER_EFICAS_HOMARD } + 'HOMARD': studyManager.FICHIER_EFICAS_HOMARD } + + folderName = { 'ASTER': 'AsterFile', + 'HOMARD': 'HomardFile' } + moduleEntry = studyManager.palStudy.addComponent(self.module) itemName = re.split("/",jdcPath)[-1] - #commEntry = self.createItemInStudy( EficasEntry, itemName ) #CS_pbruno attention même nom possible, controle à faire - commEntry = studyManager.palStudy.addItem( moduleEntry, - itemName = itemName, - itemType = fileType[ self.bureau.code ], - itemValue = jdcPath, - itemComment = str( jdcPath ), - itemIcon = "ICON_COMM_FILE", - bDoublonCheck = True ) + + fatherEntry = studyManager.palStudy.addItem( + moduleEntry, + itemName = folderName[self.bureau.code], + itemType = studyManager.ASTER_FILE_FOLDER, + bDoublonCheck = True ) + + commEntry = studyManager.palStudy.addItem( fatherEntry , + itemName = itemName, + itemType = fileType[ self.bureau.code ], + itemValue = jdcPath, + itemComment = str( jdcPath ), + itemIcon = "ICON_COMM_FILE", + bDoublonCheck = True ) studyManager.palStudy.refresh() print 'addJdcInSalome commEntry->', commEntry if commEntry: - ok, msgError = True, '' - + ok, msgError = True, '' except: logger.debug(50*'=') return ok, msgError