gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-blog] branch master updated: remove unnecessary para


From: gnunet
Subject: [GNUnet-SVN] [taler-blog] branch master updated: remove unnecessary param
Date: Sun, 07 Jan 2018 18:11:07 +0100

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

dold pushed a commit to branch master
in repository blog.

The following commit(s) were added to refs/heads/master by this push:
     new 96992ce  remove unnecessary param
96992ce is described below

commit 96992ce671730227af0e1a4e0264d5a745553753
Author: Florian Dold <address@hidden>
AuthorDate: Sun Jan 7 18:11:05 2018 +0100

    remove unnecessary param
---
 talerblog/blog/blog.py | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/talerblog/blog/blog.py b/talerblog/blog/blog.py
index e8bfa99..748ccac 100644
--- a/talerblog/blog/blog.py
+++ b/talerblog/blog/blog.py
@@ -142,16 +142,11 @@ def article(name, data=None):
         session_id = flask.session["uid"] = uuid.uuid4()
 
     pay_params = dict(
-        instance=INSTANCE,
         contract_url=make_url("/generate-contract", ("article_name", name)),
+        instance=INSTANCE,
+        order_id=flask.request.args.get("order_id"),
         session_id=session_id,
         session_sig=flask.request.args.get("session_sig"),
-        order_id=flask.request.args.get("order_id"),
-        # URL that the browser will navigate to after the user has paid (or
-        # proved they already paid) with this session
-        confirm_url = make_url("/essay/" + name,
-                               ("order_id", "${order_id}"),
-                               ("session_sig", "${session_sig}"))
     )
 
     resp = requests.get(urljoin(BACKEND_URL, "check-payment"), 
params=pay_params)
@@ -167,13 +162,13 @@ def article(name, data=None):
         return flask.render_template("templates/article_refunded.html", 
article_name=name)
 
     if pay_status.get("paid"):
-        articleInfo = ARTICLES[name]
+        articleInfo = ARTICLES.get(name)
         if articleInfo is None:
             flask.abort(500)
         if data is not None:
             if data in article_info.extra_files:
                 return flask.send_file(get_image_file(data))
-            return "permission denied", 400
+            return "permission denied", 403
         return flask.render_template("templates/article_frame.html",
                                      
article_file=get_article_file(article_info),
                                      article_name=name)

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



reply via email to

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