Skip to content
This repository has been archived by the owner on Dec 17, 2020. It is now read-only.

Commit

Permalink
Change how we compare items
Browse files Browse the repository at this point in the history
  • Loading branch information
projekt01 committed Apr 16, 2008
1 parent bc1d536 commit dac8eee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/z3c/jsontree/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def renderUL(self, name, item, childTags=None):
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:
Expand Down Expand Up @@ -390,7 +390,7 @@ def renderLI(self, name, item):

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
Expand Down

0 comments on commit dac8eee

Please sign in to comment.