from org.maemo.hermes.engine.friend import Friend
+from org.maemo.hermes.engine.contact import Contact
import evolution
class Hermes:
# -----------------------------------------------------------------------
def run_alt(self, overwrite_existing_fields=False):
- print "+++ Syncing contacts..."
- self.addresses = evolution.ebook.open_addressbook('default')
- print "+++ Contact store created..."
- contacts = self.addresses.get_all_contacts()
+ contacts = []
+ book = evolution.ebook.open_addressbook('default')
+ for contact in book.get_all_contacts():
+ contacts.append(Contact(book, contact))
# warm up
for service in self._services: