------------------------------------------------------------
revno: 1505
fixes bug: https://launchpad.net/bugs/1397170
committer: Mark Sapiro <m...@msapiro.net>
branch nick: 2.1
timestamp: Thu 2014-11-27 20:25:34 -0800
message:
  Fixed a UnicodeDecodeError that coud occur in the web admin interface
  if 'text' valued attributes have unicode values.
modified:
  Mailman/htmlformat.py
  NEWS


--
lp:mailman/2.1
https://code.launchpad.net/~mailman-coders/mailman/2.1

Your team Mailman Checkins is subscribed to branch lp:mailman/2.1.
To unsubscribe from this branch go to 
https://code.launchpad.net/~mailman-coders/mailman/2.1/+edit-subscription
=== modified file 'Mailman/htmlformat.py'
--- Mailman/htmlformat.py	2014-06-09 22:06:46 +0000
+++ Mailman/htmlformat.py	2014-11-28 04:25:34 +0000
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2012 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2014 by the Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
@@ -448,7 +448,10 @@
         if self.checked:
             output.append('CHECKED')
         output.append('>')
-        return SPACE.join(output)
+        ret = SPACE.join(output)
+        if self.type == 'TEXT' and not isinstance(ret, str):
+            ret = repr(ret)
+        return ret
 
 
 class SubmitButton(InputObj):
@@ -496,6 +499,8 @@
         if self.readonly:
             output += ' READONLY'
         output += '>%s</TEXTAREA>' % self.text
+        if not isinstance(output, str):
+            output = repr(output)
         return output
 
 class FileUpload(InputObj):

=== modified file 'NEWS'
--- NEWS	2014-11-08 01:19:05 +0000
+++ NEWS	2014-11-28 04:25:34 +0000
@@ -33,6 +33,9 @@
 
   Bug fixes and other patches
 
+    - Fixed a UnicodeDecodeError that coud occur in the web admin interface
+      if 'text' valued attributes have unicode values.  (LP: #1397170)
+
     - We now catch the NotAMemberError exception thrown if an authenticated
       unsubscribe is submitted from the user options page for a nonmember.
       (LP: #1390653)

_______________________________________________
Mailman-checkins mailing list
Mailman-checkins@python.org
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to