コード例 #1
0
 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
ファイル: processorstankman.py プロジェクト: aevitas/wotsdk
 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)