[Blends-commit] [SCM] website branch, master, updated. 1024503fed8f045a3863b10f4c576ab55f81381b

Ole Streicher olebole at debian.org
Sun Mar 6 08:48:44 UTC 2016


The following commit has been merged in the master branch:
commit 1024503fed8f045a3863b10f4c576ab55f81381b
Author: Ole Streicher <olebole at debian.org>
Date:   Sun Mar 6 09:48:42 2016 +0100

    Load templates as UTF-8 by default

diff --git a/webtools/bugs.py b/webtools/bugs.py
index 53e4290..33b05fe 100755
--- a/webtools/bugs.py
+++ b/webtools/bugs.py
@@ -274,7 +274,8 @@ def main():
     template_dir = os.path.join(current_dir, 'templates')
     
     # initialize gensi
-    loader = TemplateLoader([template_dir], auto_reload=True)
+    loader = TemplateLoader([template_dir], auto_reload=True,
+                            default_encoding="utf-8")
     
     outputdir = CheckOrCreateOutputDir(config['outputdir'],'bugs') # FIXME: as long as we are not finished use different dir
     if outputdir == None:
diff --git a/webtools/tasks.py b/webtools/tasks.py
index c9c5569..94b0e44 100755
--- a/webtools/tasks.py
+++ b/webtools/tasks.py
@@ -66,7 +66,7 @@ for lang in languages:
 
 
 # initialize gensi
-loader = TemplateLoader([template_dir], auto_reload=True)
+loader = TemplateLoader([template_dir], auto_reload=True, default_encoding="utf-8")
 
 outputdir = CheckOrCreateOutputDir(tasks.data['outputdir'],'tasks')
 if outputdir == None:
diff --git a/webtools/thermometer.py b/webtools/thermometer.py
index 99e78ed..5ad16f1 100755
--- a/webtools/thermometer.py
+++ b/webtools/thermometer.py
@@ -345,7 +345,8 @@ def main():
     template_dir = os.path.join(current_dir, 'templates')
     
     # initialize gensi
-    loader = TemplateLoader([template_dir], auto_reload=True)
+    loader = TemplateLoader([template_dir], auto_reload=True,
+                            default_encoding="utf-8")
     
     outputdir = CheckOrCreateOutputDir(config['outputdir'],'thermometer')
     if outputdir == None:

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list