Author: croberts Date: 2011-06-24 15:31:24 +0000 (Fri, 24 Jun 2011) New Revision: 4853
Modified: trunk/cumin/python/cumin/main.py Log: Addressing BZ https://bugzilla.redhat.com/show_bug.cgi?id=699732 for the messaging overview section. The submission name is now truncated at 50 characters.
Modified: trunk/cumin/python/cumin/main.py =================================================================== --- trunk/cumin/python/cumin/main.py 2011-06-24 13:58:48 UTC (rev 4852) +++ trunk/cumin/python/cumin/main.py 2011-06-24 15:31:24 UTC (rev 4853) @@ -589,6 +589,12 @@ self.page.main.grid.submission.id.set(session, submission_id) self.page.main.grid.submission.view.show(session) return branch.marshal() + + def render_cell_content(self, session, record): + retval = len(record) > 0 and record[self.field.index] or "" + if(len(record[self.field.index]) > 50): + retval = record[self.field.index][:50] + "..." #indicate that we truncated the name + return retval
class DurationColumn(TopTableColumn): def render_header_content(self, session):
cumin-developers@lists.fedorahosted.org