From 2bd5573a5b174fb4a0c5b70b7fe0f03bcde5fffd Mon Sep 17 00:00:00 2001 From: bourcier <> Date: Wed, 9 May 2007 13:45:57 +0000 Subject: [PATCH] =?utf8?q?permet=20de=20cr=C3=A9er=20le=20groupe=20de=20no?= =?utf8?q?euds=20dans=20DEFI=5FGROUP>=20CREA=5FGROUP=5FMA>=20GROUP=5FMA=20?= =?utf8?q?permet=20de=20cr=C3=A9er=20le=20groupe=20de=20noeuds=20dans=20DE?= =?utf8?q?FI=5FGROUP>=20CREA=5FGROUP=5FNO>=20GROUP=5FNO?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Cette modification est nécessaire pour créer le GROUP_NO DC dans la fiche de validation eficas de PAL.MECA. --- src/EFICASGUI/eficasSalome.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/EFICASGUI/eficasSalome.py b/src/EFICASGUI/eficasSalome.py index 746b2bbb..e915555c 100644 --- a/src/EFICASGUI/eficasSalome.py +++ b/src/EFICASGUI/eficasSalome.py @@ -5,7 +5,7 @@ from Logger import ExtLogger import qt import notifqt # ----------------------------------------------------------------------------- -import sys, os, re +import sys, os, re, types @@ -470,14 +470,16 @@ class MyEficas( Tkinter.Toplevel, eficas.EFICAS ): """ groupMa = () try: - itemName = item.get_nom() - #print 'CS_pbruno itemName',itemName + itemName = item.get_nom() if 'GROUP_MA' in itemName: itemValue = item.get_valeur() if type( itemValue ) == str: groupMa += ( itemValue , ) elif type( itemValue ) == tuple: - groupMa += itemValue + groupMa += itemValue + elif type( itemValue ) == types.InstanceType and itemValue.has_key('GROUP_MA'): + # pour créer le groupe de mailles dans DEFI_GROUP> CREA_GROUP_MA> GROUP_MA + groupMa += ( itemValue['GROUP_MA'], ) else: children = item._GetSubList() for child in children: @@ -495,11 +497,14 @@ class MyEficas( Tkinter.Toplevel, eficas.EFICAS ): try: itemName = item.get_nom() if 'GROUP_NO' in itemName: - itemValue = item.get_valeur() + itemValue = item.get_valeur() if type( itemValue ) == str: groupNo += ( itemValue , ) elif type( itemValue ) == tuple: groupNo += itemValue + elif type( itemValue ) == types.InstanceType and itemValue.has_key('GROUP_NO'): + # pour créer le groupe de noeuds dans DEFI_GROUP> CREA_GROUP_NO> GROUP_NO + groupNo += ( itemValue['GROUP_NO'], ) else: children = item._GetSubList() for child in children: -- 2.39.2