Si votre email correspond à un compte, vous recevrez un lien de réinitialisation.
Bonjour à tousje débute en POO et j'ai un (petit) problèmeun extrait de mon codeclass EtatFamille():def get_ligne(self,row):return ((row[1].strip()),(row[2].strip()),(row[3].strip()),(row[4].strip()),(row[5].strip()),(row[6].strip()),(row[7].strip()),(row[8].strip()),(row[9].strip()),(row[10].strip()),(row[11].strip()),(row[12].strip()),'',(row[13].strip()),)def generer_xls(self,info,repertoire):self.wkb = excel.Workbooks.Add()code = ''indice = 0reader = csv.reader( file(self.txtfile), dialect='excel',delimiter=';')for row in reader:Sheet.Range(Sheet.Cells(ligne,1),Sheet.Cells(ligne,14)).Value > self.get_ligne(row)class EtatRepresentantFamille(EtatFamille):def get_ligne(self,row):return ((row[2].strip()),(row[3].strip()),(row[4].strip()),(row[5].strip()),(row[6].strip()),(row[7].strip()),(row[8].strip()),(row[9].strip()),(row[10].strip()),(row[11].strip()),(row[12].strip()),(row[13].strip()),''
(row[14].strip()),)lorsque j'utilise la classe EtatRepresentantFamille, j'obtiens l'erreurFile "C:Scripts GFDStatComm.pyw", line 338, in get_lignereturn ((row[2].strip()),TypeError: object of type 'str' is not callableIl semble qu'il considère row comme une chaine et non plus comme une liste.Quelqu'un peut-il m'expliquer pourquoi et comment résoudre le problème
Bonjour à tous je débute en POO et j'ai un (petit) problème un extrait de mon code class EtatFamille(): def get_ligne(self,row): return ((row[1].strip()), (row[2].strip()), (row[3].strip()), (row[4].strip()), (row[5].strip()), (row[6].strip()), (row[7].strip()), (row[8].strip()), (row[9].strip()), (row[10].strip()), (row[11].strip()), (row[12].strip()), '', (row[13].strip()), ) def generer_xls(self,info,repertoire): self.wkb = excel.Workbooks.Add() code = '' indice = 0 reader = csv.reader( file(self.txtfile), dialect='excel', delimiter=';') for row in reader: Sheet.Range(Sheet.Cells(ligne,1),Sheet.Cells(ligne,14)).Value > self.get_ligne(row) class EtatRepresentantFamille(EtatFamille): def get_ligne(self,row): return ((row[2].strip()), (row[3].strip()), (row[4].strip()), (row[5].strip()), (row[6].strip()), (row[7].strip()), (row[8].strip()), (row[9].strip()), (row[10].strip()), (row[11].strip()), (row[12].strip()), (row[13].strip()), ''
(row[14].strip()), ) lorsque j'utilise la classe EtatRepresentantFamille, j'obtiens l'erreur File "C:Scripts GFDStatComm.pyw", line 338, in get_ligne return ((row[2].strip()), TypeError: object of type 'str' is not callable Il semble qu'il considère row comme une chaine et non plus comme une liste. Quelqu'un peut-il m'expliquer pourquoi et comment résoudre le problème
Bonjour à tousje débute en POO et j'ai un (petit) problèmeun extrait de mon codeclass EtatFamille():def get_ligne(self,row):return ((row[1].strip()),(row[2].strip()),(row[3].strip()),(row[4].strip()),(row[5].strip()),(row[6].strip()),(row[7].strip()),(row[8].strip()),(row[9].strip()),(row[10].strip()),(row[11].strip()),(row[12].strip()),'',(row[13].strip()),)
Bonjour à tous je débute en POO et j'ai un (petit) problème un extrait de mon code class EtatFamille(): def get_ligne(self,row): return ((row[1].strip()), (row[2].strip()), (row[3].strip()), (row[4].strip()), (row[5].strip()), (row[6].strip()), (row[7].strip()), (row[8].strip()), (row[9].strip()), (row[10].strip()), (row[11].strip()), (row[12].strip()), '', (row[13].strip()), )