From e8d387e26b0c0d9f0b4b8ba8e730fb72c012ba4a Mon Sep 17 00:00:00 2001 From: Pascale Noyret Date: Thu, 9 Oct 2014 11:50:06 +0000 Subject: [PATCH] Pour les grpma/grpno --- InterfaceQT4/monPlusieursBasePanel.py | 4 ++-- InterfaceQT4/monUniqueBasePanel.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/InterfaceQT4/monPlusieursBasePanel.py b/InterfaceQT4/monPlusieursBasePanel.py index e8b25694..1a74848c 100644 --- a/InterfaceQT4/monPlusieursBasePanel.py +++ b/InterfaceQT4/monPlusieursBasePanel.py @@ -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): diff --git a/InterfaceQT4/monUniqueBasePanel.py b/InterfaceQT4/monUniqueBasePanel.py index 729d6a15..c13548e0 100644 --- a/InterfaceQT4/monUniqueBasePanel.py +++ b/InterfaceQT4/monUniqueBasePanel.py @@ -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) -- 2.39.2