Mercurial > libervia-backend
comparison frontends/src/primitivus/chat.py @ 1988:3f0d22565684
primitivus (chat): fixed a crash when page-up was pressed on room contacts list
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 01 Jul 2016 00:00:12 +0200 |
parents | ab439ffe4113 |
children | 981e2abbb56c |
comparison
equal
deleted
inserted
replaced
1987:ab439ffe4113 | 1988:3f0d22565684 |
---|---|
155 occupant_data.widgets.add(self) | 155 occupant_data.widgets.add(self) |
156 markup = self._generateMarkup() | 156 markup = self._generateMarkup() |
157 super(OccupantWidget, self).__init__(urwid.Text(markup)) | 157 super(OccupantWidget, self).__init__(urwid.Text(markup)) |
158 | 158 |
159 def __eq__(self, other): | 159 def __eq__(self, other): |
160 if other is None: | |
161 return False | |
160 return self.occupant_data.nick == other.occupant_data.nick | 162 return self.occupant_data.nick == other.occupant_data.nick |
161 | 163 |
162 def __lt__(self, other): | 164 def __lt__(self, other): |
163 return self.occupant_data.nick.lower() < other.occupant_data.nick.lower() | 165 return self.occupant_data.nick.lower() < other.occupant_data.nick.lower() |
164 | 166 |