From b7b0af1b06c9bd0f1e86e79b5812f31f7324aa23 Mon Sep 17 00:00:00 2001 From: salome <> Date: Fri, 21 Jul 2006 13:57:36 +0000 Subject: [PATCH] =?utf8?q?=C3=A9volution:=20on=20place=20les=20JDC=20dans?= =?utf8?q?=20l'arbre=20d'=C3=A9tude=20sous=20le=20r=C3=A9pertoire=20AsterF?= =?utf8?q?ile=20(=20pour=20un=20JDC=20ASTER=20)=20ou=20HomardFile=20(=20po?= =?utf8?q?ur=20un=20JDC=20HOMARD=20)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/EFICASGUI/eficasSalome.py | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) 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 -- 2.39.2