[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-merchant-demos] branch master updated: pass uproc
From: |
gnunet |
Subject: |
[taler-taler-merchant-demos] branch master updated: pass uproc |
Date: |
Wed, 07 Sep 2022 15:57:22 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository taler-merchant-demos.
The following commit(s) were added to refs/heads/master by this push:
new 7e6c074 pass uproc
7e6c074 is described below
commit 7e6c074ac076a82f8c487682cf937c509081c132
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Sep 7 15:57:20 2022 +0200
pass uproc
---
talermerchantdemos/blog/blog.py | 2 +-
talermerchantdemos/donations/donations.py | 2 +-
talermerchantdemos/httpcommon/__init__.py | 4 ++--
talermerchantdemos/landing/landing.py | 2 +-
talermerchantdemos/survey/survey.py | 2 +-
5 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/talermerchantdemos/blog/blog.py b/talermerchantdemos/blog/blog.py
index e264ca4..6c547fd 100644
--- a/talermerchantdemos/blog/blog.py
+++ b/talermerchantdemos/blog/blog.py
@@ -112,7 +112,7 @@ LOGGER.info(
# Add context processor that will make additional variables
# and functions available in the template.
-app.context_processor(make_utility_processor("blog"))
+app.context_processor(make_utility_processor("blog"), url_for('index'))
##
diff --git a/talermerchantdemos/donations/donations.py
b/talermerchantdemos/donations/donations.py
index 6569970..7673eef 100644
--- a/talermerchantdemos/donations/donations.py
+++ b/talermerchantdemos/donations/donations.py
@@ -79,7 +79,7 @@ LOGGER.info(
# Add context processor that will make additional variables
# and functions available in the template.
-app.context_processor(make_utility_processor("donations"))
+app.context_processor(make_utility_processor("donations", url_for ('index')))
##
# Return a error response to the client.
diff --git a/talermerchantdemos/httpcommon/__init__.py
b/talermerchantdemos/httpcommon/__init__.py
index e5b970c..0b76111 100644
--- a/talermerchantdemos/httpcommon/__init__.py
+++ b/talermerchantdemos/httpcommon/__init__.py
@@ -165,7 +165,7 @@ all_languages = {
# Make the environment available into templates.
#
# @return the environment-reading function
-def make_utility_processor(pagename):
+def make_utility_processor(pagename,base_url):
def utility_processor():
def getactive():
return pagename
@@ -195,7 +195,7 @@ def make_utility_processor(pagename):
getlang=getlang,
all_languages=all_languages,
static=static,
- script_name=url_for('index'),
+ script_name=base_url,
)
return utility_processor
diff --git a/talermerchantdemos/landing/landing.py
b/talermerchantdemos/landing/landing.py
index 4a81cc3..ed621fa 100644
--- a/talermerchantdemos/landing/landing.py
+++ b/talermerchantdemos/landing/landing.py
@@ -80,7 +80,7 @@ LOGGER.info(
# Add context processor that will make additional variables
# and functions available in the template.
-app.context_processor(make_utility_processor("landing"))
+app.context_processor(make_utility_processor("landing"), url_for ('index'))
##
# Exception handler to capture all the unmanaged errors.
diff --git a/talermerchantdemos/survey/survey.py
b/talermerchantdemos/survey/survey.py
index 8c5ebb9..0727a7b 100644
--- a/talermerchantdemos/survey/survey.py
+++ b/talermerchantdemos/survey/survey.py
@@ -86,7 +86,7 @@ app.add_template_global(self_localized)
# Add context processor that will make additional variables
# and functions available in the template.
-app.context_processor(make_utility_processor("survey"))
+app.context_processor(make_utility_processor("survey"), url_for('index'))
##
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-taler-merchant-demos] branch master updated: pass uproc,
gnunet <=