×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2009
    Posts
    1

    pys60: problem with opening contacts

    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

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: pys60: problem with opening contacts

    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

  3. #3
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: pys60: problem with opening contacts

    hello ahmed

    you can have a look at this wiki article.

    Cheers,
    Gaba88

Similar Threads

  1. Opening UI Designer problem
    By apus29 in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 8
    Last Post: 2011-02-01, 07:09
  2. STLPort namespace issue
    By yickhong in forum Open C/C++
    Replies: 0
    Last Post: 2009-04-09, 08:54
  3. Problem in using getting contacts from Phonebook
    By nisheethpandey in forum Symbian
    Replies: 9
    Last Post: 2009-03-26, 19:15
  4. Replies: 4
    Last Post: 2008-08-12, 10:38
  5. Contacts Transfer Problem !
    By ginnybhullar in forum General Development Questions
    Replies: 1
    Last Post: 2007-11-03, 04:48

Posting Permissions

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