[rhmessaging-commits] rhmessaging commits: r1198 - in mgmt: notes and 1 other directory.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Wed Oct 31 13:52:33 EDT 2007


Author: justi9
Date: 2007-10-31 13:52:33 -0400 (Wed, 31 Oct 2007)
New Revision: 1198

Modified:
   mgmt/cumin/python/cumin/charts.py
   mgmt/notes/justin-todo.txt
Log:
Makes the charts scroll in the right direction.



Modified: mgmt/cumin/python/cumin/charts.py
===================================================================
--- mgmt/cumin/python/cumin/charts.py	2007-10-31 17:34:58 UTC (rev 1197)
+++ mgmt/cumin/python/cumin/charts.py	2007-10-31 17:52:33 UTC (rev 1198)
@@ -9,7 +9,7 @@
     def __init__(self, width, height):
         self.width = width
         self.height = height
-        self.surface = ImageSurface(FORMAT_ARGB32, width + 40, height + 20)
+        self.surface = ImageSurface(FORMAT_ARGB32, width + 60, height + 20)
         self.max_value = 1
 
     def set_max_value(self, value):
@@ -20,8 +20,9 @@
         cr.set_line_width(2)
         cr.set_source_rgb(*color)
 
-        for x, value in zip(range(self.width, 0 - interval, -interval),
-                            reversed(values)):
+        xs = range(self.width, 0 - interval, -interval)
+
+        for x, value in zip(xs, values):
             y = self.height - (value / float(self.max_value)) * self.height
             cr.line_to(x, y)
 

Modified: mgmt/notes/justin-todo.txt
===================================================================
--- mgmt/notes/justin-todo.txt	2007-10-31 17:34:58 UTC (rev 1197)
+++ mgmt/notes/justin-todo.txt	2007-10-31 17:52:33 UTC (rev 1198)
@@ -111,5 +111,3 @@
    cases where get_object is overriden and that fact is not reflected
    in the render_title calls.  Perhaps introduce a get_title to solve
    this.
-
- * Make the charts scroll in the right direction




More information about the rhmessaging-commits mailing list