def __init__(self, le2mclt): IRemote.__init__(self, le2mclt) self._histo_vars = [ "CPR_period", "CPR_decision", "CPR_periodpayoff", "CPR_cumulativepayoff" ] self.histo.append(texts_CPR.get_histo_head())
def remote_display_summary(self, period_content): """ Display the summary screen :param texte_recap: :param historique: :return: deferred """ logger.info(u"{} Summary".format(self._le2mclt.uid)) self.histo.append([period_content.get(k) for k in self._histo_vars]) if self._le2mclt.simulation: return 1 else: defered = defer.Deferred() ecran_recap = GuiRecapitulatif( defered, self._le2mclt.automatique, self._le2mclt.screen, self._currentperiod, self.histo, texts_CPR.get_recapitulatif(period_content)) ecran_recap.show() return defered
def __init__(self, le2mclt): IRemote.__init__(self, le2mclt) self._histo_vars = [ "CPR_period", "CPR_decision", "CPR_periodpayoff", "CPR_cumulativepayoff"] self.histo.append(texts_CPR.get_histo_head())