[boxes] add id of the rset to generated dom id of RsetBox to lower chance of id conflict (object id may be reused later) stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 06 Jan 2011 11:55:31 +0100
branchstable
changeset 6785 c462147c9315
parent 6784 562dd184cbc7
child 6786 ce35c6f2f219
[boxes] add id of the rset to generated dom id of RsetBox to lower chance of id conflict (object id may be reused later)
web/views/boxes.py
--- a/web/views/boxes.py	Thu Jan 06 11:54:37 2011 +0100
+++ b/web/views/boxes.py	Thu Jan 06 11:55:31 2011 +0100
@@ -218,7 +218,7 @@
 
     @property
     def domid(self):
-        return super(RsetBox, self).domid + unicode(abs(id(self)))
+        return super(RsetBox, self).domid + unicode(abs(id(self))) + unicode(abs(id(self.cw_rset)))
 
     def render_title(self, w):
         w(self.cw_extra_kwargs['title'])