allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hei...@apache.org
Subject allura git commit: [#7874] Fixed UnicodeEncodeError on ticket attachment diff.
Date Thu, 23 Apr 2015 16:31:35 GMT
Repository: allura
Updated Branches:
  refs/heads/hs/7874 [created] db076001f


[#7874] Fixed UnicodeEncodeError on ticket attachment diff.


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/db076001
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/db076001
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/db076001

Branch: refs/heads/hs/7874
Commit: db076001f36e41d432f03c08da6fe7af785251fe
Parents: cf4d528
Author: Heith Seewald <hseewald@slashdotmedia.com>
Authored: Thu Apr 23 12:30:39 2015 -0400
Committer: Heith Seewald <hseewald@slashdotmedia.com>
Committed: Thu Apr 23 12:30:39 2015 -0400

----------------------------------------------------------------------
 ForgeTracker/forgetracker/tracker_main.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/db076001/ForgeTracker/forgetracker/tracker_main.py
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/tracker_main.py b/ForgeTracker/forgetracker/tracker_main.py
index 9fc39d8..055116f 100644
--- a/ForgeTracker/forgetracker/tracker_main.py
+++ b/ForgeTracker/forgetracker/tracker_main.py
@@ -151,11 +151,11 @@ def get_change_text(name, new_value, old_value):
 def attachments_info(attachments):
     text = []
     for attach in attachments:
-        text.append("{} ({}; {})".format(
-            attach.filename,
+        text.append(u"{} ({}; {})".format(
+            h.really_unicode(attach.filename),
             h.do_filesizeformat(attach.length),
             attach.content_type))
-    return "\n".join(text)
+    return u"\n".join(text)
 
 
 def render_changes(changes, comment=None):


Mime
View raw message