Monday, 11 January 2010

N900 Addressbook from python

Checked the hermes source ...

Installed python-evolution bindings to the address book (which is basically a packaged version of this ...http://live.gnome.org/Conduit/evolution-python)

Using SSH to develop on device gave problems as you log in as root, and to use the
evolution stuff you need to be the user.

su user

import evolution

addresses = evolution.ebook.open_addressbook('default')
contacts = addresses.get_all_contacts()
for contact in contacts:
print contact.get_name()

No comments:

Post a Comment