[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant-frontends] branch master updated: removing
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant-frontends] branch master updated: removing unwanted /survey logic |
Date: |
Mon, 20 Nov 2017 13:30:31 +0100 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository merchant-frontends.
The following commit(s) were added to refs/heads/master by this push:
new 0c5326a removing unwanted /survey logic
0c5326a is described below
commit 0c5326a40e413cc5e0731c68d7bb89615ea4a324
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Nov 20 13:30:07 2017 +0100
removing unwanted /survey logic
---
.gitignore | 3 +++
talerfrontends/donations/donations.py | 15 ---------------
talerfrontends/donations/templates/survey.html | 25 -------------------------
3 files changed, 3 insertions(+), 40 deletions(-)
diff --git a/.gitignore b/.gitignore
index b7127f4..3956339 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,3 +12,6 @@ frontend-donations.wsgi
taler-merchant-blog
taler-merchant-donations
*.egg-info
+compile
+install-sh
+missing
diff --git a/talerfrontends/donations/donations.py
b/talerfrontends/donations/donations.py
index a7721a4..a86479d 100644
--- a/talerfrontends/donations/donations.py
+++ b/talerfrontends/donations/donations.py
@@ -60,21 +60,6 @@ def utility_processor():
def index():
return flask.render_template("templates/index.html",
merchant_currency=CURRENCY)
-
address@hidden("/survey", methods=["GET", "POST"])
-def survey():
- success = False
- if flask.request.method == "POST":
- r = requests.post(urljoin(BACKEND_URL, 'tip-authorize'),
- json=dict(amount=dict(value=1, fraction=0,
currency=CURRENCY),
- instance="Taler",
- justification="Payment methods survey"))
- if 200 != r.status_code:
- return backend_error(r)
- else:
- success = True
- return flask.render_template("templates/survey.html", success=success)
-
@app.route("/javascript")
def javascript_licensing():
return flask.render_template("templates/javascript.html")
diff --git a/talerfrontends/donations/templates/survey.html
b/talerfrontends/donations/templates/survey.html
deleted file mode 100644
index f842d6a..0000000
--- a/talerfrontends/donations/templates/survey.html
+++ /dev/null
@@ -1,25 +0,0 @@
-{% extends "templates/base.html" %}
-
-{% block main %}
- <div>
- <p>
- In this page, you can participate in our survey about payment systems
- and get a nice tip - via your Taler wallet - from this shop!
- </p>
- </div>
- <div>
- <form action="{{ url('/survey') }}" method="post">
- {% if success %}
- <strong>Congratulations, your reward has been successfully
submitted!</strong>
- {% endif %}
- What do you prefer?<br>
- <input type="radio" name="paypref" value="taler">
- <label>Taler</label>
- </input>
- <input type="radio" name="paypref" value="visa">
- <label>Visa</label>
- </input><br>
- <input type="submit" value="Submit"></input>
- </form>
- </div>
-{% endblock %}
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-merchant-frontends] branch master updated: removing unwanted /survey logic,
gnunet <=