[rhmessaging-commits] rhmessaging commits: r2115 - mgmt/cumin/python/cumin.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Tue Jun 3 10:29:52 EDT 2008


Author: justi9
Date: 2008-06-03 10:29:51 -0400 (Tue, 03 Jun 2008)
New Revision: 2115

Modified:
   mgmt/cumin/python/cumin/widgets.py
Log:
Handle null rec time

Modified: mgmt/cumin/python/cumin/widgets.py
===================================================================
--- mgmt/cumin/python/cumin/widgets.py	2008-06-03 14:23:12 UTC (rev 2114)
+++ mgmt/cumin/python/cumin/widgets.py	2008-06-03 14:29:51 UTC (rev 2115)
@@ -417,8 +417,9 @@
 
     def render_content(self, session, data):
         key = self.get_column_key(session)
+        value = data["rec_time"]
 
-        if data["rec_time"] > self.__ago.get(session):
+        if value and value > self.__ago.get(session):
             html = self.render_value(session, data[key])
         else:
             html = fmt_none_brief()




More information about the rhmessaging-commits mailing list