gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-merchant-demos] branch master updated: missing import


From: gnunet
Subject: [taler-taler-merchant-demos] branch master updated: missing import
Date: Thu, 22 Apr 2021 14:10:51 +0200

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

dold 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 48d3aec  missing import
48d3aec is described below

commit 48d3aec35315fe5a77dd46dbfb3d70c3340fda0b
Author: Florian Dold <florian@dold.me>
AuthorDate: Thu Apr 22 14:10:48 2021 +0200

    missing import
---
 talermerchantdemos/survey/survey.py | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/talermerchantdemos/survey/survey.py 
b/talermerchantdemos/survey/survey.py
index d583114..b5ea9c8 100644
--- a/talermerchantdemos/survey/survey.py
+++ b/talermerchantdemos/survey/survey.py
@@ -36,6 +36,7 @@ from ..httpcommon import (
     self_localized,
     BackendException,
     make_utility_processor,
+    get_locale,
 )
 import sys
 
@@ -81,18 +82,6 @@ LOGGER.info(
 app.add_template_global(self_localized)
 
 
-@babel.localeselector
-def get_locale():
-    parts = request.path.split("/", 2)
-    if 2 >= len(parts):
-        # Totally unexpected path format, do not localize
-        return "en"
-    lang = parts[1]
-    if lang in translations:
-        return lang
-    return "en"
-
-
 # Add context processor that will make additional variables
 # and functions available in the template.
 app.context_processor(make_utility_processor("survey"))

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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