store if photo is hidden

This commit is contained in:
Christophe Benz 2010-11-19 04:38:19 +01:00 committed by Romain Bignon
commit fc9f6b439f
3 changed files with 13 additions and 3 deletions

View file

@ -41,6 +41,7 @@ class ContactPhoto(CapBaseObject):
self.add_field('data', str)
self.add_field('thumbnail_url', basestring)
self.add_field('thumbnail_data', basestring)
self.add_field('shown', bool)
def __iscomplete__(self):
return (self.data and (not self.thumbnail_url or self.thumbnail_data))