[tableview] Don't share column renderers between all instances of a table (closes #3351872) stable
authorJulien Cristau <julien.cristau@logilab.fr>
Fri, 06 Dec 2013 11:26:57 +0100
branchstable
changeset 9329 335dee3b7447
parent 9328 6a355522438c
child 9330 45e0034e2a73
[tableview] Don't share column renderers between all instances of a table (closes #3351872)
web/views/tableview.py
--- a/web/views/tableview.py	Fri Dec 06 11:26:20 2013 +0100
+++ b/web/views/tableview.py	Fri Dec 06 11:26:57 2013 +0100
@@ -451,7 +451,7 @@
     def column_renderer(self, colid, *args, **kwargs):
         """Return a column renderer for column of the given id."""
         try:
-            crenderer = self.column_renderers[colid]
+            crenderer = self.column_renderers[colid].copy()
         except KeyError:
             crenderer = self.default_column_renderer_class(*args, **kwargs)
         crenderer.bind(self, colid)