[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-backoffice] 23/31: fix names
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-backoffice] 23/31: fix names |
Date: |
Thu, 04 Jan 2018 18:09:46 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository backoffice.
commit b8dc97da52c3178abb32fd850f31d40be7614ffc
Author: Florian Dold <address@hidden>
AuthorDate: Sat Dec 9 02:18:34 2017 +0100
fix names
---
talerblog/blog/blog.py | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/talerblog/blog/blog.py b/talerblog/blog/blog.py
index 101a968..f1589c0 100644
--- a/talerblog/blog/blog.py
+++ b/talerblog/blog/blog.py
@@ -151,27 +151,27 @@ def cc_payment(name):
@app.route("/essay/<name>")
@app.route("/essay/<name>/data/<data>")
-def article(namex, data=None):
- LOGGER.info("processing %s" % namex)
+def article(name, data=None):
+ LOGGER.info("processing %s" % name)
payed_articles = flask.session.get("payed_articles", {})
- if payed_articles.get(namex, "") == "__refunded":
- return flask.render_template("templates/article_refunded.html",
article_name=namex)
+ if payed_articles.get(name, "") == "__refunded":
+ return flask.render_template("templates/article_refunded.html",
article_name=name)
- if namex in payed_articles:
- articlex = ARTICLES[namex]
- if articlex is None:
+ if name in payed_articles:
+ articleInfo = ARTICLES[name]
+ if articleInfo is None:
flask.abort(500)
if data is not None:
- if data in articlex.extra_files:
+ if data in articleInfo.extra_files:
return flask.send_file(get_image_file(data))
return "permission denied", 400
return flask.render_template("templates/article_frame.html",
- article_file=get_article_file(articlex),
- article_name=namex)
+
article_file=get_article_file(articleInfo),
+ article_name=name)
contract_url = make_url("/generate-contract",
- ("article_name", namex))
+ ("article_name", name))
response = flask.make_response(
flask.render_template("templates/fallback.html"), 402)
response.headers["X-Taler-Contract-Url"] = contract_url
@@ -179,7 +179,7 @@ def article(namex, data=None):
# Useless (?) header, as X-Taler-Contract-Url takes always (?) precedence
# over X-Offer-Url. This one might only be useful if the contract
retrieval
# goes wrong.
- response.headers["X-Taler-Offer-Url"] = make_url("/essay/" + quote(namex))
+ response.headers["X-Taler-Offer-Url"] = make_url("/essay/" + quote(name))
return response
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [taler-backoffice] 04/31: config defaults, (continued)
- [GNUnet-SVN] [taler-backoffice] 04/31: config defaults, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 24/31: better 402 page, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 01/31: submodule, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 15/31: typo, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 25/31: add taler nojs tags to make CSS magic work, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 19/31: export PYTHONPATH before tests are run, and include articles and data into the installed bundle., gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 07/31: setuptools, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 02/31: auto{make,conf}, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 13/31: helper module, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 10/31: moving data, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 23/31: fix names,
gnunet <=
- [GNUnet-SVN] [taler-backoffice] 26/31: decrease article cost to make it work with tipping, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 27/31: adjust tests, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 03/31: bootstrap/wsgi/launcher, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 06/31: base template, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 18/31: naming leftovers, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 22/31: pacify PEP checkers, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 21/31: linting the launcher, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 28/31: survey in side bar, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 14/31: missing templates, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 11/31: actual blog logic, gnunet, 2018/01/04