[tableview] cubicweb:sortvalue should not have 'json:' in its value anymore. This breaks old tables. stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 09 Dec 2011 12:57:22 +0100
branchstable
changeset 8126 a4d8064bf393
parent 8124 acc23c284432
child 8127 96d343a5e01b
[tableview] cubicweb:sortvalue should not have 'json:' in its value anymore. This breaks old tables.
web/htmlwidgets.py
--- a/web/htmlwidgets.py	Fri Dec 09 12:08:44 2011 +0100
+++ b/web/htmlwidgets.py	Fri Dec 09 12:57:22 2011 +0100
@@ -350,7 +350,7 @@
             self.w(u'<tr class="%s" %s>' % (klass, self.highlight))
             for column, sortvalue in self.itercols(rowindex):
                 attrs = dict(column.cell_attrs)
-                attrs["cubicweb:sortvalue"] = 'json:' + sortvalue
+                attrs["cubicweb:sortvalue"] = sortvalue
                 attrs = ('%s="%s"' % (name, value) for name, value in attrs.iteritems())
                 self.w(u'<td %s>' % (' '.join(attrs)))
                 for cellvid, colindex in column.cellrenderers: