From: Pascale Noyret Date: Thu, 17 Sep 2009 13:14:15 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: V1_0OpenTurns~63 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a88c7b2ae5ef4f39eee1a5dfa3ea112bf4657155;p=modules%2Feficas.git *** empty log message *** --- diff --git a/Ihm/I_JDC.py b/Ihm/I_JDC.py index 0d0e0806..b704c180 100644 --- a/Ihm/I_JDC.py +++ b/Ihm/I_JDC.py @@ -73,19 +73,16 @@ class JDC(I_OBJECT.OBJECT): l.sort() return l - def get_variables(self): - # voir le sort avec IDM - #d=self.get_contexte_avant(etape) - #l=[] - #for k,v in d.items(): - # if str(type(v)).find('variable') > -1 : - # l.append(k) - #l.sort() + def get_variables(self,etape): + etapeStop=etape l=[] - for k,v in self.sds_dict.items(): - if str(type(v)).find('variable') > -1 : - l.append(k) - l.sort() + for etapeTraitee in self.etapes : + if etapeTraitee==etapeStop: + break + if etapeTraitee.nom == 'VARIABLE' : + variable=etapeTraitee.get_mocle('ModelVariable') + if variable != None : + l.append(variable.nom) return l def get_sd_avant_du_bon_type_pour_type_de_base(self,etape,type):