[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-bank] branch master updated: Indentation, logging.
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-bank] branch master updated: Indentation, logging. |
Date: |
Fri, 03 Mar 2017 13:34:02 +0100 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository bank.
The following commit(s) were added to refs/heads/master by this push:
new b3ac8a6 Indentation, logging.
b3ac8a6 is described below
commit b3ac8a6822a81b49b3a38674358c4beea4438945
Author: Marcello Stanisci <address@hidden>
AuthorDate: Fri Mar 3 13:33:48 2017 +0100
Indentation, logging.
---
talerbank/app/views.py | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index 0c19dd3..cc6d8ea 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -200,7 +200,12 @@ def pin_tan_verify(request):
# This is not a withdraw session, we redirect the user to the
# profile page.
return redirect("profile")
- return create_reserve_at_exchange(request, amount, exchange_url,
exchange_account_number, reserve_pub, sender_wiredetails)
+ return create_reserve_at_exchange(request,
+ amount,
+ exchange_url,
+ exchange_account_number,
+ reserve_pub,
+ sender_wiredetails)
class UserReg(forms.Form):
@@ -336,7 +341,12 @@ def withdraw_nojs(request):
return response
-def create_reserve_at_exchange(request, amount, exchange_url,
exchange_account_no, reserve_pub, sender_account_details):
+def create_reserve_at_exchange(request,
+ amount,
+ exchange_url,
+ exchange_account_no,
+ reserve_pub,
+ sender_account_details):
try:
BankAccount.objects.get(account_no=exchange_account_no)
except BankAccount.DoesNotExist:
@@ -360,6 +370,8 @@ def create_reserve_at_exchange(request, amount,
exchange_url, exchange_account_n
))
user_account = BankAccount.objects.get(user=request.user)
exchange_account = BankAccount.objects.get(account_no=exchange_account_no)
+ # Build subject including Exchange base URL here.
+ logger.info("Reserve data: '%s'" % json.dumps(res.json()))
wire_transfer(amount, user_account, exchange_account, reserve_pub)
request.session["just_withdrawn"] = True
return redirect("profile")
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-bank] branch master updated: Indentation, logging.,
gnunet <=