]> SALOME platform Git repositories - modules/eficas.git/commitdiff
Salome HOME
Le fichier salomedsgui.py est présent dans les modules ASTER et EFICAS. J'avais modif...
authorsalome <>
Thu, 12 May 2005 12:14:44 +0000 (12:14 +0000)
committersalome <>
Thu, 12 May 2005 12:14:44 +0000 (12:14 +0000)
src/EFICASGUI/salomedsgui.py

index 521dd64c95181ece3497a6a77229fefaa266d5e8..7f2cd697eed7e68b4f58cca5f261a9753b22b3da 100644 (file)
@@ -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)