Add support for creating contacts from "interesting" friends on LinkedIn. Completes...
[hermes] / package / src / org / maemo / hermes / engine / hermes.py
index 9d569d8..ab2d445 100644 (file)
@@ -86,10 +86,11 @@ class Hermes:
             tick_increment = len(contacts) / (len(to_create) or 1)
             print tick_increment, to_create
             for friend in to_create:
-                friend.set_source(service.get_id())
                 self._progress("Creating contacts...", current_tick, total_ticks)
                 current_tick += tick_increment
-                self.create_contact_from_friend(friend)
+                if friend.is_interesting():
+                    friend.set_source(service.get_id())
+                    self.create_contact_from_friend(friend)
                 
         # finalisation
         for service in self._services: