comparison src/browser/sat_browser/base_panels.py @ 584:0a06cf833f5a

browser_side: various improvements, especially for MUC
author souliane <souliane@mailoo.org>
date Wed, 22 Oct 2014 19:03:55 +0200
parents e1a773a64fb6
children a5019e62c3e9
comparison
equal deleted inserted replaced
583:4c6c61696ba0 584:0a06cf833f5a
111 AbsolutePanel.__init__(self) 111 AbsolutePanel.__init__(self)
112 self.occupants_list = {} 112 self.occupants_list = {}
113 self.setStyleName('occupantsList') 113 self.setStyleName('occupantsList')
114 114
115 def addOccupant(self, nick): 115 def addOccupant(self, nick):
116 if nick in self.occupants_list:
117 return
116 _occupant = Occupant(nick) 118 _occupant = Occupant(nick)
117 self.occupants_list[nick] = _occupant 119 self.occupants_list[nick] = _occupant
118 self.add(_occupant) 120 self.add(_occupant)
119 121
120 def removeOccupant(self, nick): 122 def removeOccupant(self, nick):