[rhmessaging-commits] rhmessaging commits: r2700 - mgmt/trunk/cumin/python/cumin.
rhmessaging-commits at lists.jboss.org
rhmessaging-commits at lists.jboss.org
Wed Oct 29 16:28:32 EDT 2008
Author: eallen
Date: 2008-10-29 16:28:32 -0400 (Wed, 29 Oct 2008)
New Revision: 2700
Modified:
mgmt/trunk/cumin/python/cumin/job.py
Log:
Changed some status colors
Modified: mgmt/trunk/cumin/python/cumin/job.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/job.py 2008-10-29 20:24:51 UTC (rev 2699)
+++ mgmt/trunk/cumin/python/cumin/job.py 2008-10-29 20:28:32 UTC (rev 2700)
@@ -1256,7 +1256,7 @@
class JobStatusInfo(object):
stat_strings = ["Unexpanded", "Idle", "Running", "Removed", "Completed", "Held", "Submission Error"]
- stat_colors = ["red", "green", "green", "green", "green", "yellow", "red"]
+ stat_colors = ["red", "clear", "green", "black", "blue", "yellow", "red"]
@classmethod
def get_status_string(cls, stat):
try:
@@ -1277,4 +1277,10 @@
return cls.stat_strings.index(stat)
except:
return -1
-
+
+ @classmethod
+ def get_zipped_colors(cls):
+ colors = dict()
+ for stat in cls.stat_strings:
+ colors[stat] = cls.stat_colors[cls.stat_strings.index(stat)]
+ return colors
\ No newline at end of file
More information about the rhmessaging-commits
mailing list