- def run(self, resync=False):
- """Load information on the authenticated user's friends. Synchronise Facebook
- profiles to contact database. If resync is false, no existing information
- will be overwritten."""
-
- class FakeContact():
- def get_name(self):
- return "Fredrik Wendt"
- def get_emails(self):
- return ["fredrik@wendt.se", "maemohermes@wendt.se"]
- def get_photo(self):
- return None
- def get_mapped_to(self):
- return set(["facebook", "gravatar"])
- self.matched = [FakeContact()]
-
-# self._sync_job = SyncJob(services, [FakeContact()], self.progress)
-# self._sync_job.run()
-# self._sync_job.get_unmatched_friends()
-# self._sync_job.get_updated_contacts()
-# self._sync_job.get_matched_contacts()
- pass
-
-
- # -----------------------------------------------------------------------
- def run_alt(self, overwrite_existing_fields=False):