[rhmessaging-commits] rhmessaging commits: r4157 - mgmt/newdata/cumin/python/cumin.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Wed Jul 28 09:13:54 EDT 2010


Author: eallen
Date: 2010-07-28 09:13:54 -0400 (Wed, 28 Jul 2010)
New Revision: 4157

Modified:
   mgmt/newdata/cumin/python/cumin/OpenFlashChart.py
Log:
handle True and False when neither CJSON nor JJSON are installed

Modified: mgmt/newdata/cumin/python/cumin/OpenFlashChart.py
===================================================================
--- mgmt/newdata/cumin/python/cumin/OpenFlashChart.py	2010-07-28 13:01:29 UTC (rev 4156)
+++ mgmt/newdata/cumin/python/cumin/OpenFlashChart.py	2010-07-28 13:13:54 UTC (rev 4157)
@@ -22,7 +22,7 @@
         JJSON = True
     except ImportError:
         pass
-import    copy    
+import    copy
 
 class Chart(dict):
     # Dictionary for replacing attribute names
@@ -82,7 +82,10 @@
         elif JJSON:
             return json.dumps(attributes)
         else:
-            return str(attributes).replace("': u'", "': '")
+            return str(attributes).\
+                replace("': u'", "': '").\
+                replace(": True,", ": true,").\
+                replace(": False,", ": false,")
 
 
 class Element(Chart):



More information about the rhmessaging-commits mailing list