global evolution
evolution = None
self._book = evolution.ebook.open_addressbook(self._bookId)
-
+
@classmethod
def is_supported(cls):
return evolution is not None
for bookId in evolution.ebook.list_addressbooks():
yield self, bookId[1], bookId[0]
-
+
def open_addressbook(self, bookId):
self._bookId = bookId
self._book = evolution.ebook.open_addressbook(self._bookId)
for contact in self._book.get_all_contacts():
yield str(contact.get_uid()), contact.props.full_name
-
+
def get_contact_details(self, contactId):
"""
@returns Iterable of (Phone Type, Phone Number)