def getDicoObjetsCompletsPourTree(self):
monDico={}
- leTexte="<span class='" + self.getNomClassWeb() + "' id='" +self.idUnique+ "'>" + self.nom + ' ' + str(self.val) + "</span>"
+ # leTexte="<span class='" + self.getNomClassWeb() + "' id='" +self.idUnique+ "'>" + self.nom + ' ' + str(self.val) + "</span>"
+ leTexte= self.nom + " " + str(self.val)
monDico['text']=leTexte
return monDico
def getDicoObjetsCompletsPourTree(self):
from collections import OrderedDict
- monDico=OrderedDict()
- leTexte="<span class='" + self.getNomClassWeb() + "' id='" +self.idUnique+ "'>" + self.nom +"</span>"
+ # monDico=OrderedDict()
+ monDico={}
+# leTexte="<span class='" + self.getNomClassWeb() + "' id='" +self.idUnique+ "'>" + self.nom +"</span>"
+ leTexte=self.nom
monDico['text']=leTexte
listeNodes=[]
- for obj in (self.mcListe):
+ for obj in self.mcListe:
listeNodes.append(obj.getDicoObjetsCompletsPourTree())
monDico['nodes']=listeNodes
return monDico
def getDicoObjetsCompletsPourTree(self):
from collections import OrderedDict
- monDico=OrderedDict()
+ # monDico=OrderedDict()
+ monDico={}
+ monDico['text']="Racine à Programmer"
+ listNodes=[]
for e in self.object.etapes :
- sdNom = ''
- if e.nature == 'OPERATEUR' and e.sdnom != "sansnom" : sdNom = e.sdnom
- leTexte="<span class='" + e.getNomClassWeb() + "' id='" +e.idUnique+ "'>" + e.nom + sdNom + "</span>"
- monDico['text']=leTexte
-
- monDico['nodes']=e.getDicoObjetsCompletsPourTree()
+ # sdNom = ''
+ # if e.nature == 'OPERATEUR' and e.sdnom != "sansnom" : sdNom = e.sdnom
+ # # leTexte="<span class='" + e.getNomClassWeb() + "' id='" +e.idUnique+ "'>" + e.nom + sdNom + "</span>"
+ # leTexte=e.nom + sdNom
+ listNodes.append(e.getDicoObjetsCompletsPourTree())
+ monDico['nodes']=listNodes
return monDico