def writeDefault(self,fn) :
fileDico = fn[:fn.rfind(".")] + '.py'
- f = open( str(fileDico), 'wb')
- f.write( self.texteDico )
- print((self.texteDico))
+ f = open( str(fileDico), 'w')
+ f.write('Dico = '+str(self.Dico))
f.close()
#----------------------------------------------------------------------------------------
def generMCSIMP(self,obj) :
"""recuperation de l objet MCSIMP"""
s=PythonGenerator.generMCSIMP(self,obj)
+ print ('jjjjjjjjjj')
+ print (obj.nom)
+ print (s)
courant=self.Dico
- for p in obj.get_genealogie_precise()[0:-1]:
+ for p in obj.getGenealogiePrecise()[0:-1]:
if not (p in courant.keys()) : courant[p]={}
courant=courant[p]
courant[obj.nom]=obj.val
self.texteDico+=obj.nom+ "=" + s[0:-1]+ "\n"
return s
-