View Single Post
Posts: 16 | Thanked: 1 time | Joined on Jan 2010
#26
I've just discovered an interesting thing: if you send an email to someone you don't have in your personal address book, the N900 standard email client will add the email address to the address book.: your address book will show something like xxx@yyy.com. If you open the contact you will see that only an email address is present (no name, surname or alias present)

If you try to create an email contact directly from your address book, it will ask you to put a name at least...this means is impossible to add only an email address...

Let's go back to our program: If the email address is present in my address book, the program doesn't work and it shows me this error:

Traceback (most recent call last):
File "/opt/www2sms/www2sms.py", line 451, in <module>
ui = MainWindow()
File "/opt/www2sms/www2sms.py", line 55, in __init__
self.my_phone_book = self.get_contacts()
File "/opt/www2sms/www2sms.py", line 200, in get_contacts
contact_and_numbers = [item.decode('utf-8')]
AttributeError: 'list' object has no attribute 'decode'

If I delete this email contact, the program works fine!

Just one thing: now the problem seems to appear only with the previous version (the one installed through the app. manager). The new one gave me this problem only once!