import qt
import notifqt
# -----------------------------------------------------------------------------
-import sys, os, re
+import sys, os, re, types
"""
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:
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: