Author: justi9
Date: 2008-12-05 16:38:06 -0500 (Fri, 05 Dec 2008)
New Revision: 2941
Modified:
mgmt/trunk/wooly/python/wooly/widgets.py
Log:
Shorten long property values
Modified: mgmt/trunk/wooly/python/wooly/widgets.py
===================================================================
--- mgmt/trunk/wooly/python/wooly/widgets.py 2008-12-05 21:23:42 UTC (rev 2940)
+++ mgmt/trunk/wooly/python/wooly/widgets.py 2008-12-05 21:38:06 UTC (rev 2941)
@@ -443,6 +443,9 @@
escapable = True
if type(value) is str and escapable:
+ if len(value) > 36:
+ value = value[:36] + "..."
+
value = escape(value)
elif value is None:
value = "<em>None</em>"
Show replies by date