def _populate(self): super(PersonalMissionsAwardsView, self)._populate() self._eventsCache.onSyncCompleted += self.__onQuestsUpdated self._eventsCache.onProgressUpdated += self.__onQuestsUpdated self.refresh() self.as_setHeaderDataS({ 'operations': missions_helper.getOperations(self.getOperationID()) })
def __updateHeader(self): self.as_setHeaderDataS({ 'operations': missions_helper.getOperations(self.getOperationID()), 'operationTitle': self.__getOperationTitle(), 'backBtnLabel': PERSONAL_MISSIONS.HEADER_BACKBTN_LABEL, 'backBtnDescrLabel': PERSONAL_MISSIONS.HEADER_BACKBTN_DESCRLABEL_CAMPAIGN })
def __onQuestsUpdated(self, *args): self.refresh() self.as_setHeaderDataS({ 'operations': missions_helper.getOperations(self.getOperationID()) })