trainers = []
for sesi in reg.event_id.session_ids :
iden = sesi.trainer_id.identity_no
if iden not in trainers :
trainers.append(iden)
trainer = trainers
str(trainer.encode('utf-8', 'ignore')) +'","'+str(assesor.encode('utf-8', 'ignore')) +'","' +\
trainers = []
for sesi in reg.event_id.session_ids :
iden = sesi.trainer_id.identity_no
if iden not in trainers :
trainers.append(iden)
trainer = trainers
str(trainer.encode('utf-8', 'ignore')) +'","'+str(assesor.encode('utf-8', 'ignore')) +'","' +\
Hi Chaanto,
The trainers list is not string, Check the trainer type, e.g type(trainer). and pass the return.
Hello Chaanto,
Obviously list has not attribute like encode so its giving error..
You need to unicode each element of the list individually.
\https://stackoverflow.com/questions/5054333/attributeerror-list-object-has-no-attribute-encode
Thanks!
Özel özelliklerden yararlanmak ve harika topluluğumuzla etkileşime geçmek için bugün bir hesap oluşturun!
Üye Ol| İlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
|---|---|---|---|---|
|
0
Mar 26
|
173 | |||
|
1
Şub 26
|
456 | |||
|
0
Şub 26
|
7 | |||
|
0
Şub 26
|
47 | |||
|
0
Şub 26
|
195 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.