[Getan-commits] [PATCH 1 of 2] Fix using umlauts in usernames like Björn for getan-eval.py script

Wald Commits scm-commit at wald.intevation.org
Mon Feb 9 10:17:35 CET 2015


# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1423473415 -3600
# Node ID da9a400848fdf93dbb47049628d3d8b965967194
# Parent  9a0dba03d16cee6b1af4f6f8ccb95833c4d14f59
Fix using umlauts in usernames like Björn for getan-eval.py script

diff -r 9a0dba03d16c -r da9a400848fd scripts/getan-eval.py
--- a/scripts/getan-eval.py	Mon Jan 26 14:08:44 2015 +0100
+++ b/scripts/getan-eval.py	Mon Feb 09 10:16:55 2015 +0100
@@ -54,7 +54,10 @@
     Writer = codecs.getwriter(encoding)
     sys.stdout = Writer(sys.stdout)
 
-    print render(database=options.database, user=options.user,
+    if options.user:
+        user = options.user.decode(encoding)
+
+    print render(database=options.database, user=user,
                  template=template_name, year=year, week=week,
                  project=options.project, empty_projects=options.empty)
 


More information about the Getan-commits mailing list