------------------------------------------------------------
revno: 1068
committer: Mark Sapiro <[EMAIL PROTECTED]>
branch nick: 2.1
timestamp: Mon 2008-04-21 09:04:49 -0700
message:
  Fixed a problem where GuiBase._getValidValue() would truncate a floating
  point Number type to an int if the value was a float instead of a numeric
  string. This affected setting floating point values with config_list.
  
  Updated NEWS for 2.1.10 final.
modified:
  Mailman/Gui/GUIBase.py
  NEWS

=== modified file 'Mailman/Gui/GUIBase.py'
--- a/Mailman/Gui/GUIBase.py    2008-03-16 05:09:31 +0000
+++ b/Mailman/Gui/GUIBase.py    2008-04-21 16:04:49 +0000
@@ -99,6 +99,11 @@
             return val
         # This is a number, either a float or an integer
         if wtype == mm_cfg.Number:
+            # The int/float code below doesn't work if we are called from
+            # config_list with a value that is already a float.  It will
+            # truncate the value to an int.
+            if isinstance(val, float):
+                return val
             num = -1
             try:
                 num = int(val)

=== modified file 'NEWS'
--- a/NEWS      2008-04-14 20:30:26 +0000
+++ b/NEWS      2008-04-21 16:04:49 +0000
@@ -1,10 +1,10 @@
 Mailman - The GNU Mailing List Management System
-Copyright (C) 1998-2007 by the Free Software Foundation, Inc.
+Copyright (C) 1998-2008 by the Free Software Foundation, Inc.
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
 
 Here is a history of user visible changes to Mailman.
 
-2.1.10rc1 (14-Apr-2008)
+2.1.10 (21-Apr-2008)
 
   Security
 
@@ -180,6 +180,11 @@
     - Changed cmd_subscribe.py to properly accept (no)digest without a
       password and to recognize (no)digest and address= case insensitively.
 
+    - Fixed a problem where GuiBase._getValidValue() would truncate a
+      floating point Number type to an int if the value was a float instead
+      of a numeric string. This affected setting floating point values with
+      config_list.
+
   Miscellaneous
 
     - Brad Knowles' mailman daily status report script updated to 0.0.17.



--
Stable, maintained release series
https://code.launchpad.net/~mailman-coders/mailman/2.1

You are receiving this branch notification because you are subscribed to it.
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to