[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-bank] branch master updated: UI
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-bank] branch master updated: UI |
Date: |
Sun, 29 Sep 2019 15:31:43 +0200 |
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 6a8ddc8 UI
6a8ddc8 is described below
commit 6a8ddc88cebb92791db5a047008602c574186f61
Author: Marcello Stanisci <address@hidden>
AuthorDate: Sun Sep 29 15:29:43 2019 +0200
UI
---
talerbank/app/middleware.py | 7 +++----
talerbank/app/views.py | 8 ++++++++
2 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/talerbank/app/middleware.py b/talerbank/app/middleware.py
index 234baed..15fc1e3 100644
--- a/talerbank/app/middleware.py
+++ b/talerbank/app/middleware.py
@@ -89,7 +89,7 @@ class ExceptionMiddleware:
# after the exception gets managed.
self.render = {
"/profile": "profile",
- "/register": "index",
+ "/accounts/register": "index",
"/public-accounts": "index",
"/pin/verify": "profile",
"/withdraw": "profile"
@@ -116,7 +116,7 @@ class ExceptionMiddleware:
# @param request Django-specific HTTP request.
# @param exception the exception raised from the bank.
def process_exception(self, request, exception):
-
+ LOGGER.warning("Exception", exception)
# See if we manage this exception. Return None if not.
exc_class = None
for e in self.excs:
@@ -141,5 +141,4 @@ class ExceptionMiddleware:
True, False, exception.hint
return redirect(render_to)
-
-# [1]
https://git.taler.net/exchange.git/tree/src/include/taler_error_codes.h#n1502
+# [1] https://git.taler.net/exchange.git/tree/src/include/taler_error_codes.h
diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index 6a7ae6d..426937e 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -442,6 +442,14 @@ def register(request):
}
)
+ except DebitLimitException as e:
+ return render(
+ request, "register.html", {
+ "wrong": True,
+ "hint": "Out of business, cannot admit new customers."
+ }
+ )
+
request.session["profile_hint"] = False, True, "Registration successful!"
django.contrib.auth.login(request, user)
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: UI,
gnunet <=