reinhard | 11 Aug 2009 10:51

[gnue] r9915 - trunk/gnue-common/src/formatting

Author: reinhard
Date: 2009-08-11 03:51:27 -0500 (Tue, 11 Aug 2009)
New Revision: 9915

Modified:
   trunk/gnue-common/src/formatting/GDataFormatter.py
Log:
Also check for decimal.Decimal type. Thanks to John Proios.

Modified: trunk/gnue-common/src/formatting/GDataFormatter.py
===================================================================
--- trunk/gnue-common/src/formatting/GDataFormatter.py	2009-04-03 10:19:49 UTC (rev 9914)
+++ trunk/gnue-common/src/formatting/GDataFormatter.py	2009-08-11 08:51:27 UTC (rev 9915)
 <at>  <at>  -30,6 +30,7  <at>  <at> 
 #

 from types import *
+import decimal
 from gnue.common.external.fixedpoint import FixedPoint, addHalfAndChop
 FixedPoint.round = addHalfAndChop

 <at>  <at>  -49,7 +50,7  <at>  <at> 
       pass

     # TODO: As said above, this is a bad hack w/a lot of assumptions
-    if type(value) == FloatType:
+    if type(value) == FloatType or isinstance(value, decimal.Decimal):
       v = mask.split('.',1)
       try:
         dec = len(v[1])
(Continue reading)

reinhard | 14 Aug 2009 11:35

[gnue] r9916 - in trunk: gnue-common www/web/community

Author: reinhard
Date: 2009-08-14 04:35:17 -0500 (Fri, 14 Aug 2009)
New Revision: 9916

Modified:
   trunk/gnue-common/THANKS
   trunk/www/web/community/contrib.php
Log:
Updated list of developers and contributors on web page.

Modified: trunk/gnue-common/THANKS
===================================================================
--- trunk/gnue-common/THANKS	2009-08-11 08:51:27 UTC (rev 9915)
+++ trunk/gnue-common/THANKS	2009-08-14 09:35:17 UTC (rev 9916)
 <at>  <at>  -10,6 +10,7  <at>  <at> 
 Gábor Kmetykó, Hungary
 Andrew Mitchell, New Zealand
 Derek A. Neighbors, USA
+John Proios, Greece
 Christian Selig, Germany
 Sascha Schlegel, Liechtenstein
 Dimitry Sorokin, Russia

Modified: trunk/www/web/community/contrib.php
===================================================================
--- trunk/www/web/community/contrib.php	2009-08-11 08:51:27 UTC (rev 9915)
+++ trunk/www/web/community/contrib.php	2009-08-14 09:35:17 UTC (rev 9916)
 <at>  <at>  -6,261 +6,8  <at>  <at> 
 <div id="body">
 <h1>GNUe Developers</h1>
(Continue reading)


Gmane