You Are Here:

Community: Developer Discussion Boards

#1 Old pys60: problem with opening contacts - 2009-07-01, 16:12

Join Date: Jun 2009
Posts: 1
amoati
Offline
Registered User
Hi all, I get a problem when I open the contactsDb as below:

import contacts
db = contacts.open
db[25].title

TypeError: unsupported operand type(s) for +: 'NoneType' and 'unicode'

and when I check the contacts via the menu I find additional entries for instance I have 1/8 while the memory details give 10 contacts!

So what I normally do is that I delete those keys with no titles and then every thing works fine so do you have any idea why is that?

Thanks
Ahmed

P.S.: I'm using X5800
Reply With Quote

#2 Old Re: pys60: problem with opening contacts - 2009-07-01, 16:47

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
Quote:
Originally Posted by amoati View Post
Hi all, I get a problem when I open the contactsDb as below:

import contacts
db = contacts.open
db[25].title

TypeError: unsupported operand type(s) for +: 'NoneType' and 'unicode'

and when I check the contacts via the menu I find additional entries for instance I have 1/8 while the memory details give 10 contacts!

So what I normally do is that I delete those keys with no titles and then every thing works fine so do you have any idea why is that?

Thanks
Ahmed

P.S.: I'm using X5800
hello ahmed

welcome to forum nokia discussion board i guess you need the contact id before you start playing on that.

Moreover please search in the Python wiki there are lots of example for the contact module.

Enjoy Pythoning
Gaba88


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#3 Old Re: pys60: problem with opening contacts - 2009-07-01, 17:09

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
hello ahmed

you can have a look at this wiki article.

Cheers,
Gaba88


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
STLPort namespace issue yickhong Open C/C++ 0 2009-04-09 09:54
Problem in using getting contacts from Phonebook nisheethpandey General Symbian C++ 9 2009-03-26 20:15
Opening UI Designer problem apus29 Carbide.c++ IDE and plug-ins 7 2009-02-05 11:04
Strange problem of PyS60 crash with C++ module (elocation) bergerc Python 4 2008-08-12 11:38
Contacts Transfer Problem ! ginnybhullar General Discussion 1 2007-11-03 05:48

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia