def _successHandler(self, code, ctx=None):
     restorePrice, _ = getTankmenRestoreInfo(self.__tankman)
     if restorePrice:
         currency = restorePrice.getCurrency()
         return makeI18nSuccess('restore_tankman/financial_success',
                                type=_getSysMsgType(restorePrice),
                                money=formatPriceForCurrency(
                                    restorePrice, currency))
     return makeI18nSuccess('restore_tankman/success',
                            type=SM_TYPE.Information)
예제 #2
0
 def _successHandler(self, code, ctx = None):
     restorePrice, _ = getTankmenRestoreInfo(self.__tankman)
     if restorePrice:
         return makeI18nSuccess('restore_tankman/financial_success', type=_getSysMsgType(restorePrice), money=formatPriceForCurrency(restorePrice, Currency.CREDITS))
     else:
         return makeI18nSuccess('restore_tankman/success', type=SM_TYPE.Information)