From a88c7b2ae5ef4f39eee1a5dfa3ea112bf4657155 Mon Sep 17 00:00:00 2001 From: Pascale Noyret Date: Thu, 17 Sep 2009 13:14:15 +0000 Subject: [PATCH] *** empty log message *** --- Ihm/I_JDC.py | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) 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): -- 2.39.2