From 735b6d475375dd099ea9d1a863439422a57b9240 Mon Sep 17 00:00:00 2001 From: salome <> Date: Thu, 12 May 2005 12:14:44 +0000 Subject: [PATCH] =?utf8?q?Le=20fichier=20salomedsgui.py=20est=20pr=C3=A9se?= =?utf8?q?nt=20dans=20les=20modules=20ASTER=20et=20EFICAS.=20J'avais=20mod?= =?utf8?q?ifi=C3=A9=20celui=20d'ASTER=20en=20ajoutant=20la=20m=C3=A9thode?= =?utf8?q?=20getTypeAttribute.=20Malheureusement=20quand=20j'importe=20sal?= =?utf8?q?omedsgui=20c'est=20celui=20d'EFICAS=20qui=20est=20pris!!=20Je=20?= =?utf8?q?me=20vois=20dans=20un=20premier=20temps=20oblig=C3=A9=20de=20mod?= =?utf8?q?ifier=20le=20salomedsgui=20d'EFICAS?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/EFICASGUI/salomedsgui.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/EFICASGUI/salomedsgui.py b/src/EFICASGUI/salomedsgui.py index 521dd64c..7f2cd697 100644 --- a/src/EFICASGUI/salomedsgui.py +++ b/src/EFICASGUI/salomedsgui.py @@ -140,7 +140,17 @@ class guiDS: print val return val - + def getTypeAttribute(self, objectId): + mySO = self._myStudy.FindObjectID(objectId) + boo,RefSO = mySO.ReferencedObject() + if boo: + mySO = RefSO + boo,attr = self._myBuilder.FindAttribute(mySO,"AttributeFileType") + val="" + if boo: + val=attr.Value() + return val + def getChildren(self, objectId): children=[] mySO = self._myStudy.FindObjectID(objectId) -- 2.39.2