Commit dd8fe679 authored by Adrian Georgescu's avatar Adrian Georgescu

Show organization for Google Contacts

parent 3c20e89f
...@@ -620,6 +620,7 @@ class GoogleContact(object): ...@@ -620,6 +620,7 @@ class GoogleContact(object):
uris.extend(GoogleContactURI.from_im(address) for address in contact_data.get('imClients', Null)) uris.extend(GoogleContactURI.from_im(address) for address in contact_data.get('imClients', Null))
uris.extend(GoogleContactURI.from_email(address) for address in contact_data.get('emailAddresses', Null)) uris.extend(GoogleContactURI.from_email(address) for address in contact_data.get('emailAddresses', Null))
name = name if not organization else '%s (%s)' % (name, organization)
self.name = name self.name = name
self.organization = organization self.organization = organization
self.uris = GoogleContactURIList(uris) self.uris = GoogleContactURIList(uris)
...@@ -641,7 +642,7 @@ class GoogleContact(object): ...@@ -641,7 +642,7 @@ class GoogleContact(object):
uris.extend(GoogleContactURI.from_email(address) for address in contact_data.get('emailAddresses', Null)) uris.extend(GoogleContactURI.from_email(address) for address in contact_data.get('emailAddresses', Null))
icon = GoogleContactIcon(icon_url, icon_metadata) icon = GoogleContactIcon(icon_url, icon_metadata)
name = name if not organization else '%s (%s)' % (name, organization)
return cls(contact_id, name, organization, uris, icon, etag) return cls(contact_id, name, organization, uris, icon, etag)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment