[rhmessaging-commits] rhmessaging commits: r2755 - mgmt/trunk/cumin/python/cumin.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Thu Nov 6 09:41:39 EST 2008


Author: eallen
Date: 2008-11-06 09:41:39 -0500 (Thu, 06 Nov 2008)
New Revision: 2755

Modified:
   mgmt/trunk/cumin/python/cumin/job.py
Log:
Shorten Job Command column and show 5 characters from the start and 11 from the end.

Modified: mgmt/trunk/cumin/python/cumin/job.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/job.py	2008-11-06 14:13:38 UTC (rev 2754)
+++ mgmt/trunk/cumin/python/cumin/job.py	2008-11-06 14:41:39 UTC (rev 2755)
@@ -188,6 +188,9 @@
     class CommandColumn(ItemTableColumn):
         def render_title(self, session, data):
             return "Command"
+        
+        def render_content(self, session, data):
+            return fmt_shorten(data[self.name], pre=5, post=11)
 
     class TitleColumn(SqlTableColumn):
         def render_title(self, session, data):




More information about the rhmessaging-commits mailing list