+hermes (0.8.4) fremantle; urgency=low
+
+ * Prevent overzealous matching on LinkedIn/Facebook based on *any*
+ URL.
+ * Handle cases of empty URLs & phone numbers attempting to be
+ added (silently ignore).
+
+ -- Andrew Flegg <andrew@bleb.org> Sun, 4 Jul 2010 13:51:08 +0100
+
hermes (0.8.3) fremantle; urgency=low
* Handle multiple Twitter matches causing a failure. MB#10667,
self._friends_without_contact.add(friend)
for url in friend.get_urls():
- self._friends_by_url[url] = friend
+ if self.is_profile_url(url):
+ self._friends_by_url[url] = friend
if self._allow_friend_to_match_by_name(friend):
key = canonical(friend.get_name())
# -----------------------------------------------------------------------
+ def is_profile_url(self, url):
+ """Return True if this is a URL for this service."""
+
+ return url and "facebook.com" in url
+
+
+ # -----------------------------------------------------------------------
def _allow_friend_to_match_by_name(self, friend):
for url in friend.get_urls():
if url in self._known_urls:
# public accessors -----------------
def add_url(self, url):
- if not isinstance(url, basestring):
- print url
- raise Exception('Not valid to add non-string URLs')
- self._add('url', url)
+ if url:
+ if not isinstance(url, basestring):
+ print url
+ raise Exception('Not valid to add non-string URLs')
+ self._add('url', url)
def add_phone(self, phone):
- self._add('phone', phone)
+ if phone:
+ self._add('phone', phone)
def get_birthday_date(self):
return self._safe_get('bday')
friends = self.linkedInApi.get_friends()
for friend in friends:
self._register_friend(friend)
+
+
+ # -----------------------------------------------------------------------
+ def is_profile_url(self, url):
+ """Return True if this is a URL for this service."""
+
+ return url and "linkedin.com" in url
+
# -----------------------------------------------------------------------
def __init__(self, providers = None):
gettext.install('hermes','/opt/hermes/share/locale/')
- WimpWorks.__init__(self, 'Hermes', version = '0.8.2', dbus_name = 'org.maemo.hermes')
+ WimpWorks.__init__(self, 'Hermes', version = '0.8.4', dbus_name = 'org.maemo.hermes')
self.set_background('background.png')
layout = HildonMainScreenLayout(offset = 0.8, container = self)