taler-merchant-demos

Python-based Frontends for the Demonstration Web site
Log | Files | Refs | Submodules | README | LICENSE

commit 7e6c074ac076a82f8c487682cf937c509081c132
parent 4b14521dfe56b1c0135ca9a5a38bf3130c25c482
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed,  7 Sep 2022 15:57:20 +0200

pass uproc

Diffstat:
Mtalermerchantdemos/blog/blog.py | 2+-
Mtalermerchantdemos/donations/donations.py | 2+-
Mtalermerchantdemos/httpcommon/__init__.py | 4++--
Mtalermerchantdemos/landing/landing.py | 2+-
Mtalermerchantdemos/survey/survey.py | 2+-
5 files changed, 6 insertions(+), 6 deletions(-)

diff --git 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 @@ -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 @@ -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 @@ -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 @@ -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')) ##