--- a/web/views/tableview.py Fri Oct 21 18:10:50 2011 +0200
+++ b/web/views/tableview.py Fri Oct 21 18:37:30 2011 +0200
@@ -139,6 +139,7 @@
add_view_actions = False
header_column_idx = None
enable_sorting = True
+ sortvalue_limit = 10
tablesorter_settings = {
'textExtraction': JSString('cw.sortValueExtraction'),
'selectorHeaders': "thead tr:first th", # only plug on the first row
@@ -263,7 +264,7 @@
if renderer.sortable:
sortvalue = renderer.sortvalue(rownum)
if isinstance(sortvalue, basestring):
- sortvalue = sortvalue[:10]
+ sortvalue = sortvalue[:self.sortvalue_limit]
if sortvalue is not None:
attrs[u'cubicweb:sortvalue'] = js_dumps(sortvalue)
return attrs