Add support for creating contacts from "interesting" friends on LinkedIn. Completes...
[hermes] / package / src / org / maemo / hermes / engine / friend.py
index 00eba50..42af12a 100644 (file)
@@ -25,7 +25,12 @@ class Friend():
         return "Friend %s" % self.get_name()
     
     # public accessors -----------------
-    
+        
+    def is_interesting(self):
+        """A friend is interesting if there's more info than URLs
+           and photos."""
+        return self._attributes.has_key('bday') or self._multi_attributes.has_key('phone')
+
     def add_url(self, url):
        if url:
            if not isinstance(url, basestring):