Author: croberts Date: 2011-08-09 21:21:51 +0000 (Tue, 09 Aug 2011) New Revision: 4914
Modified: trunk/cumin/python/cumin/grid/tags.py Log: Truncate the tags column of the node inventory at 50 characters.
Modified: trunk/cumin/python/cumin/grid/tags.py =================================================================== --- trunk/cumin/python/cumin/grid/tags.py 2011-08-08 20:42:48 UTC (rev 4913) +++ trunk/cumin/python/cumin/grid/tags.py 2011-08-09 21:21:51 UTC (rev 4914) @@ -239,7 +239,10 @@ for tag in tags_list: tags = tags + "," + str(tag) tags = tags[1:] - return tags + retval = len(tags) > 0 and tags or "" + if(len(tags) > 50): + retval = tags[:50] + "..." #indicate that we truncated the name + return retval
class NodeColumn(ObjectTableColumn): def render_cell_content(self, session, data):
cumin-developers@lists.fedorahosted.org