def __init__(self, downloader, photo_cache, person): QtGui.QStandardItem.__init__(self) self.person = person self.person.updated.connect(self.person_updated) self.photo = None self.photo_cache = photo_cache self.downloader = downloader self.photo_load_retries = 0 self.loading = False self.registrations = Registration.by_person(person.id) self.size_hint = QtCore.QSize(80, 160) self.setFlags(QtCore.Qt.ItemIsEnabled | QtCore.Qt.ItemIsSelectable) self.person_updated(set(['init']))