Author: croberts
Date: 2012-10-24 18:43:44 +0000 (Wed, 24 Oct 2012)
New Revision: 5521
Modified:
trunk/cumin/python/cumin/objectselector.py
trunk/wooly/python/wooly/table.py
trunk/wooly/python/wooly/table.strings
Log:
Adding title to links from from objectselectors
Modified: trunk/cumin/python/cumin/objectselector.py
===================================================================
--- trunk/cumin/python/cumin/objectselector.py 2012-10-23 19:50:40 UTC (rev 5520)
+++ trunk/cumin/python/cumin/objectselector.py 2012-10-24 18:43:44 UTC (rev 5521)
@@ -599,6 +599,9 @@
def render_cell_content(self, session, record):
return len(record) > 0 and record[self.field.index] or ""
+
+ def render_cell_title(self, session, record):
+ return record[self.field.index]
class ObjectSelectorControl(WidgetSet):
def do_render(self, session):
Modified: trunk/wooly/python/wooly/table.py
===================================================================
--- trunk/wooly/python/wooly/table.py 2012-10-23 19:50:40 UTC (rev 5520)
+++ trunk/wooly/python/wooly/table.py 2012-10-24 18:43:44 UTC (rev 5521)
@@ -301,10 +301,13 @@
def render_cell_href(self, session, record):
pass
-
+
class LinkColumnCell(TableColumnCell):
def render_href(self, session, record):
return self.parent.render_cell_href(session, record)
+
+ def render_title(self, session, record):
+ return self.parent.render_cell_title(session, record)
class CheckboxColumnHeader(TableColumnHeader):
def render_name(self, session):
Modified: trunk/wooly/python/wooly/table.strings
===================================================================
--- trunk/wooly/python/wooly/table.strings 2012-10-23 19:50:40 UTC (rev 5520)
+++ trunk/wooly/python/wooly/table.strings 2012-10-24 18:43:44 UTC (rev 5521)
@@ -76,7 +76,7 @@
<span>{options}</span>
[LinkColumnCell.html]
-<td class="{class}"><a
href="{href}">{content}</a></td>
+<td class="{class}"><a href="{href}"
title="{title}">{content}</a></td>
[CheckboxColumnHeader.javascript]
(function() {
Show replies by date