[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-donations] branch master updated: fix url_for invoca
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-donations] branch master updated: fix url_for invocation |
Date: |
Mon, 22 Jan 2018 03:55:54 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository donations.
The following commit(s) were added to refs/heads/master by this push:
new fe60098 fix url_for invocation
fe60098 is described below
commit fe60098c065f6386ae36edb1289f76e8150255e5
Author: Florian Dold <address@hidden>
AuthorDate: Mon Jan 22 03:55:52 2018 +0100
fix url_for invocation
---
talerdonations/donations/donations.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/talerdonations/donations/donations.py
b/talerdonations/donations/donations.py
index 4e7ee43..99c5589 100644
--- a/talerdonations/donations/donations.py
+++ b/talerdonations/donations/donations.py
@@ -130,8 +130,8 @@ def donate():
donation_donor = expect_parameter("donation_donor")
payment_system = expect_parameter("payment_system")
if payment_system != "taler":
- return flask.redirect(flask.url_for(provider_not_supported))
- fulfillment_url = flask.url_for(fulfillment, order_id=order_id,
receiver=donation_receiver, _external=True)
+ return flask.redirect(flask.url_for("provider_not_supported"))
+ fulfillment_url = flask.url_for("fulfillment", order_id=order_id,
receiver=donation_receiver, _external=True)
order = dict(
amount=donation_amount,
extra=dict(donor=donation_donor, receiver=donation_receiver),
@@ -141,7 +141,7 @@ def donate():
)
proposal_resp = backend_post("proposal", dict(order=order))
order_id = proposal_resp["order_id"]
- return flask.redirect(flask.url_for(fulfillment, order_id=order_id))
+ return flask.redirect(flask.url_for("fulfillment", order_id=order_id))
@app.route("/fulfillment/<receiver>/<int:order_id>")
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-donations] branch master updated: fix url_for invocation,
gnunet <=