display ContactPhoto url as string
This commit is contained in:
parent
f3d88567dd
commit
4bbbee9370
1 changed files with 3 additions and 0 deletions
|
|
@ -44,6 +44,9 @@ class ContactPhoto(object):
|
|||
def __iscomplete__(self):
|
||||
return (self.data and (not self.thumbnail_url or self.thumbnail_data))
|
||||
|
||||
def __str__(self):
|
||||
return self.url
|
||||
|
||||
def __repr__(self):
|
||||
return u'<ContactPhoto "%s" data=%do tndata=%do>' % (self.name, len(self.data), len(self.thumbnail_data))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue