]> SALOME platform Git repositories - tools/eficas.git/commitdiff
Salome HOME
Pour les grpma/grpno
authorPascale Noyret <pascale.noyret@edf.fr>
Thu, 9 Oct 2014 11:50:06 +0000 (11:50 +0000)
committerPascale Noyret <pascale.noyret@edf.fr>
Thu, 9 Oct 2014 11:50:06 +0000 (11:50 +0000)
InterfaceQT4/monPlusieursBasePanel.py
InterfaceQT4/monUniqueBasePanel.py

index e8b25694a9dc224e03683c79720daddc855c8e85..1a74848ca48ad5781d426224927e7060efd09f94 100644 (file)
@@ -227,12 +227,12 @@ class MonPlusieursBasePanel(DPlusBase,QTPanel,SaisieValeur):
         genea=self.node.item.get_genealogie()
         selection=[]
         commentaire=""
-        kwType = None
+        kwType = self.node.item.object.definition.type[0]
         for e in genea:
             if "GROUP_NO" in e: kwType = "GROUP_NO"
             if "GROUP_MA" in e: kwType = "GROUP_MA"
         if 'grno' in repr(kwType): kwType = "GROUP_NO"
-        if 'grma' in repr(kwType): kwType = "GROUP_NO"
+        if 'grma' in repr(kwType): kwType = "GROUP_MA"
 
         from Accas import SalomeEntry
         if isinstance(kwType, types.ClassType) and issubclass(kwType, SalomeEntry):
index 729d6a15737f7e15832f32b597b4bdc9b3d55e60..c13548e09637e7fde5d6d7750fbccb9fb55016b3 100644 (file)
@@ -260,7 +260,7 @@ class MonUniqueBasePanel(DUnBase,QTPanel,SaisieValeur):
             if "GROUP_MA" in e: kwType = "GROUP_MA"
 
         if 'grno' in repr(kwType): kwType = "GROUP_NO"
-        if 'grma' in repr(kwType): kwType = "GROUP_NO"
+        if 'grma' in repr(kwType): kwType = "GROUP_MA"
 
         if kwType in ("GROUP_NO","GROUP_MA"):
            selection, commentaire = self.appliEficas.selectGroupFromSalome(kwType,editor=self.editor)