[Checkins] SVN: z3c.jsontree/trunk/src/z3c/jsontree/base.py Change how we compare items

Roger Ineichen roger at projekt01.ch
Tue Apr 15 20:57:47 EDT 2008


Log message for revision 85398:
  Change how we compare items

Changed:
  U   z3c.jsontree/trunk/src/z3c/jsontree/base.py

-=-
Modified: z3c.jsontree/trunk/src/z3c/jsontree/base.py
===================================================================
--- z3c.jsontree/trunk/src/z3c/jsontree/base.py	2008-04-16 00:49:59 UTC (rev 85397)
+++ z3c.jsontree/trunk/src/z3c/jsontree/base.py	2008-04-16 00:57:46 UTC (rev 85398)
@@ -305,7 +305,7 @@
         iconURL = self.getIconURL(item, self.request)
         id = self.getId(item)
 
-        if item == self.context:
+        if item is self.context:
             state = STATE_COLLAPSED
             liClass = self.collapsedCSSName
         else:
@@ -390,7 +390,7 @@
 
     def renderUL(self, name, item, childTags=None):
         """Renders <li> tag with already rendered child tags."""
-        if item == self.context:
+        if item is self.context:
             state = STATE_COLLAPSED
         else:
             state = STATE_EXPANDED



More information about the Checkins mailing list