From: Pascale Noyret Date: Mon, 1 Oct 2012 13:22:57 +0000 (+0000) Subject: Pour prendre en compte tous les codes X-Git-Tag: mergeto_V7_main_08mar13~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=31c12bc0e237bab12df3cc779c6fa3d531e8d066;p=tools%2Feficas.git Pour prendre en compte tous les codes voir bugtracker 2404 --- diff --git a/src/EFICASGUI/eficasSalome.py b/src/EFICASGUI/eficasSalome.py index 9b19ba74..9e43529b 100644 --- a/src/EFICASGUI/eficasSalome.py +++ b/src/EFICASGUI/eficasSalome.py @@ -471,15 +471,30 @@ class MyEficas( qtEficas.Appli ): moduleEntry = self.editor.findOrCreateComponent(self.module, self.componentName) itemName = re.split("/",jdcPath)[-1] + if folderName.has_key(self.code) : + monFolderName=folderName[ self.code ] + else : + monFolderName=str(self.code)+"Files" + + if folderType.has_key(self.code) : + monFolderType=fileType[ self.code ] + else : + monFolderType=str(self.code)+"_FILE_FOLDER" + + if fileType.has_key(self.code) : + monFileType=fileType[ self.code ] + else : + monFileType="FICHIER_EFICAS_"+str(self.code) + fatherEntry = self.editor.findOrCreateItem( moduleEntry, - name = folderName[self.code], + name = monFolderName, #icon = "ICON_COMM_FOLDER", - fileType = folderType[self.code]) + fileType = monFolderType) commEntry = self.editor.findOrCreateItem( fatherEntry , name = itemName, - fileType = fileType[ self.code ], + fileType = monFileType, fileName = jdcPath, #icon = "ICON_COMM_FILE", comment = str( jdcPath ))