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: dummy /reject implement


From: gnunet
Subject: [GNUnet-SVN] [taler-bank] branch master updated: dummy /reject implementation
Date: Fri, 08 Dec 2017 15:26:05 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository bank.

The following commit(s) were added to refs/heads/master by this push:
     new 38d79c6  dummy /reject implementation
38d79c6 is described below

commit 38d79c6f5ec888cef06f4ac4387a648cee57b3e0
Author: Florian Dold <address@hidden>
AuthorDate: Fri Dec 8 15:25:58 2017 +0100

    dummy /reject implementation
---
 talerbank/app/urls.py  | 1 +
 talerbank/app/views.py | 9 +++++++++
 2 files changed, 10 insertions(+)

diff --git a/talerbank/app/urls.py b/talerbank/app/urls.py
index 619e3ef..ca7006a 100644
--- a/talerbank/app/urls.py
+++ b/talerbank/app/urls.py
@@ -23,6 +23,7 @@ urlpatterns = [
     url(r'^$', RedirectView.as_view(pattern_name="profile"), name="index"),
     url(r'^favicon\.ico$', views.ignore),
     url(r'^admin/add/incoming$', views.add_incoming, name="add-incoming"),
+    url(r'^reject$', views.reject, name="reject"),
     url(r'^login/$', views.login_view, name="login"),
     url(r'^logout/$', views.logout_view, name="logout"),
     url(r'^accounts/register/$', views.register, name="register"),
diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index 846458a..4bf965f 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -32,6 +32,7 @@ from django.conf import settings
 from django.contrib.auth.decorators import login_required
 from django.views.decorators.csrf import csrf_exempt
 from django.views.decorators.http import require_POST, require_GET
+from django.views.decorators.http import require_http_methods
 from django.urls import reverse
 from django.contrib.auth.models import User
 from django.db.models import Q
@@ -477,6 +478,14 @@ def add_incoming(request, user_account):
                          "timestamp":
                              "/Date(%s)/" % int(wtrans.date.timestamp())})
 
+
address@hidden
address@hidden(["PUT"])
+def reject(request):
+    # FIXME: this is just a dummy implementation to make the
+    # exchange test case work for now
+    return HttpResponse("")
+
 @login_required
 @require_POST
 def withdraw_nojs(request):

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



reply via email to

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