[tableview] Add some unique element to AbstractColumnRenderer.__str__ (related to #3351872) stable
authorJulien Cristau <julien.cristau@logilab.fr>
Fri, 06 Dec 2013 11:26:20 +0100
branchstable
changeset 9328 6a355522438c
parent 9327 dbabdc323e7d
child 9329 335dee3b7447
[tableview] Add some unique element to AbstractColumnRenderer.__str__ (related to #3351872) Otherwise different instances look the same which is confusing.
web/views/tableview.py
--- a/web/views/tableview.py	Thu Jul 18 10:22:18 2013 +0200
+++ b/web/views/tableview.py	Fri Dec 06 11:26:20 2013 +0100
@@ -356,9 +356,9 @@
         self.colid = None
 
     def __str__(self):
-        return '<%s.%s (column %s)>' % (self.view.__class__.__name__,
+        return '<%s.%s (column %s) at 0x%x>' % (self.view.__class__.__name__,
                                         self.__class__.__name__,
-                                        self.colid)
+                                        self.colid, id(self))
 
     def bind(self, view, colid):
         """Bind the column renderer to its view. This is where `_cw`, `view`,