Mercurial > libervia-web
comparison src/browser/sat_browser/base_panels.py @ 577:e1a773a64fb6
browser_side: fixes the display of MUC occupants presences
author | souliane <souliane@mailoo.org> |
---|---|
date | Sat, 18 Oct 2014 14:47:47 +0200 |
parents | 12823bcbd05b |
children | 0a06cf833f5a |
comparison
equal
deleted
inserted
replaced
576:daa9be94e88f | 577:e1a773a64fb6 |
---|---|
126 def getOccupantBox(self, nick): | 126 def getOccupantBox(self, nick): |
127 """Get the widget element of the given nick. | 127 """Get the widget element of the given nick. |
128 | 128 |
129 @return: Occupant | 129 @return: Occupant |
130 """ | 130 """ |
131 return self.occupants_list[nick] | 131 try: |
132 return self.occupants_list[nick] | |
133 except KeyError: | |
134 return None | |
132 | 135 |
133 def clear(self): | 136 def clear(self): |
134 self.occupants_list.clear() | 137 self.occupants_list.clear() |
135 AbsolutePanel.clear(self) | 138 AbsolutePanel.clear(self) |
136 | 139 |