diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-09-07 15:57:20 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-09-07 15:57:20 +0200 |
commit | 7e6c074ac076a82f8c487682cf937c509081c132 (patch) | |
tree | aca310b25055f44b0beec9ed9585e7bac6a0e4fe | |
parent | 4b14521dfe56b1c0135ca9a5a38bf3130c25c482 (diff) | |
download | taler-merchant-demos-7e6c074ac076a82f8c487682cf937c509081c132.tar.gz taler-merchant-demos-7e6c074ac076a82f8c487682cf937c509081c132.tar.bz2 taler-merchant-demos-7e6c074ac076a82f8c487682cf937c509081c132.zip |
pass uproc
-rw-r--r-- | talermerchantdemos/blog/blog.py | 2 | ||||
-rw-r--r-- | talermerchantdemos/donations/donations.py | 2 | ||||
-rw-r--r-- | talermerchantdemos/httpcommon/__init__.py | 4 | ||||
-rw-r--r-- | talermerchantdemos/landing/landing.py | 2 | ||||
-rw-r--r-- | 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')) ## |