if isinstance(val,tuple):
texteVal='('
for i in val :
- if isinstance(i, bytes) : texteVal = texteVal +"'"+str(i)+"',"
+ if isinstance(i, bytes) or isinstance(i,str) : texteVal = texteVal +"'"+str(i)+"',"
else : texteVal = texteVal + str(i)+','
texteVal=texteVal[:-1]+')'
else :
- if isinstance(val,bytes): texteVal="'"+str(val)+"'"
+ if isinstance(val,bytes) or isinstance(i,str): texteVal="'"+str(val)+"'"
else :texteVal=str(val)
txt = txt + sep+ texteVal
return 1
return 0
+ def combienEltDsTuple(self):
+ for ss_type in self.definition.type:
+ if hasattr(ss_type,'ntuple'):
+ return ss_type.ntuple
+ return O
+
+ def waitMatrice(self):
+ if hasattr(self, 'isAMatrice') : return self.isAMatrice
+ for typ in self.definition.type:
+ try :
+ if hasattr(typ, 'typElt') : self.isAMatrice=1; return 1
+ except : pass
+ self.isAMatrice=0
+ return 0
def getListeValeurs(self):
"""
if self.definition.position == 'global' :
self.etape.deepUpdateConditionBloc()
elif self.definition.position == 'reCalculeEtape' :
+ print ('je passe par la pour ', self.nom)
self.etape.deepUpdateConditionBloc()
self.etape.demandeRedessine()
elif self.definition.position == 'global_jdc' :