gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-bank] branch master updated: django wants serializab


From: gnunet
Subject: [GNUnet-SVN] [taler-bank] branch master updated: django wants serializable values in the state, so amounts have to be stored in the state as dicts.
Date: Tue, 31 Oct 2017 16:31:58 +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 3a146da  django wants serializable values in the state, so amounts 
have to be stored in the state as dicts.
3a146da is described below

commit 3a146da7c357a12e738d063e1280290da07b8073
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Oct 31 16:31:09 2017 +0100

    django wants serializable values in the state,
    so amounts have to be stored in the state as dicts.
---
 talerbank/app/views.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index c69f2a4..f1721c3 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -164,7 +164,7 @@ def pin_tan_question(request):
         return HttpResponseBadRequest("invalid parameters (%s)" % error)
     # parameters we store in the session are (more or less) validated
     request.session["exchange_account_number"] = 
wiredetails["test"]["account_number"]
-    request.session["amount"] = amount
+    request.session["amount"] = amount.dump()
     request.session["exchange_url"] = request.GET["exchange"]
     request.session["reserve_pub"] = request.GET["reserve_pub"]
     request.session["sender_wiredetails"] = dict(
@@ -202,7 +202,7 @@ def pin_tan_verify(request):
     # not from POST parameters), since we don't what the user to
     # change it after we've verified it.
     try:
-        amount = request.session["amount"]
+        amount = Amount(**request.session["amount"])
         exchange_url = request.session["exchange_url"]
         reserve_pub = request.session["reserve_pub"]
         exchange_account_number = request.session["exchange_account_number"]

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]