Commit adcc86f8 authored by Dan Pascu's avatar Dan Pascu

Added GoogleContactID to ease identifying goole contacts based on their IDs

parent 18d971f4
......@@ -289,6 +289,16 @@ class BonjourNeighboursGroup(VirtualGroup):
notification.center.post_notification('VirtualContactDidChange', sender=contact)
class GoogleContactID(unicode):
pass
class GoogleContactIcon(object):
def __init__(self, data, etag):
self.data = data
self.etag = etag
class GoogleContactURI(object):
def __init__(self, uri, type):
self.uri = uri
......@@ -313,17 +323,11 @@ class GoogleContactURI(object):
return entry.rel.rpartition('#')[2].replace('_', ' ').strip().title()
class GoogleContactIcon(object):
def __init__(self, data, etag):
self.data = data
self.etag = etag
class GoogleContact(object):
id = WriteOnceAttribute()
def __init__(self, id, name, company, icon, uris):
self.id = id
self.id = GoogleContactID(id)
self.name = name
self.company = company
self.icon = icon
......
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