From: Pascale Noyret Date: Thu, 9 Oct 2014 11:50:06 +0000 (+0000) Subject: Pour les grpma/grpno X-Git-Tag: V7_5_0rc1~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e8d387e26b0c0d9f0b4b8ba8e730fb72c012ba4a;p=tools%2Feficas.git Pour les grpma/grpno --- 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)