Author: eallen
Date: 2008-09-05 16:53:56 -0400 (Fri, 05 Sep 2008)
New Revision: 2425
Modified:
mgmt/trunk/cumin/python/cumin/widgets.py
Log:
Use property title instead of name when title is present
Modified: mgmt/trunk/cumin/python/cumin/widgets.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/widgets.py 2008-09-05 20:17:04 UTC (rev 2424)
+++ mgmt/trunk/cumin/python/cumin/widgets.py 2008-09-05 20:53:56 UTC (rev 2425)
@@ -301,6 +301,10 @@
def render_title(self, session, item):
title = item["name"]
+ if "property" in item:
+ property = item["property"]
+ if property.title:
+ title = property.get_title(session)
return escape_amp(title)
def render_value(self, session, item):
Show replies by date