[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-bank] 01/02: show informational bar about wire trans
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-bank] 01/02: show informational bar about wire transfer outcome |
Date: |
Thu, 16 Nov 2017 13:54:42 +0100 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository bank.
commit 626e8a7a987110bea67b9171449bca7a39c9caa4
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu Nov 16 13:25:40 2017 +0100
show informational bar about wire transfer outcome
---
talerbank/app/views.py | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index 6732b00..a859590 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -108,9 +108,10 @@ def profile_page(request):
BankAccount.objects.get(user=request.user),
BankAccount.objects.get(account_no=wtf.cleaned_data.get("counterpart")),
wtf.cleaned_data.get("subject"))
- session["just_wire_transferred"] = True
- except WireTransferException:
- session["wire_transfer_error"] = True
+ request.session["just_wire_transferred"] = True
+ except (WireTransferException, BadFormatAmount) as exc:
+ LOGGER.error(exc)
+ request.session["wire_transfer_error"] = True
else:
wtf = WTForm()
@@ -136,6 +137,8 @@ def profile_page(request):
just_withdrawn=just_withdrawn,
just_registered=just_registered,
no_initial_bonus=no_initial_bonus,
+ just_wire_transferred=just_wire_transferred,
+ wire_transfer_error=wire_transfer_error
)
if settings.TALER_SUGGESTED_EXCHANGE:
context["suggested_exchange"] = settings.TALER_SUGGESTED_EXCHANGE
--
To stop receiving notification emails like this one, please contact
address@hidden