comparison browser_side/panels.py @ 408:ee8ebfe23e16

browser_side: handle the signal "roomUserChangedNick"
author souliane <souliane@mailoo.org>
date Mon, 17 Mar 2014 16:33:05 +0100
parents 6a6551de4414
children ae598511850d
comparison
equal deleted inserted replaced
407:6a6551de4414 408:ee8ebfe23e16
1157 1157
1158 def userLeft(self, nick, data): 1158 def userLeft(self, nick, data):
1159 self.occupants_list.removeOccupant(nick) 1159 self.occupants_list.removeOccupant(nick)
1160 self.printInfo("<= %s has left the room" % nick) 1160 self.printInfo("<= %s has left the room" % nick)
1161 1161
1162 def changeUserNick(self, old_nick, new_nick):
1163 assert(self.type == "group")
1164 self.occupants_list.removeOccupant(old_nick)
1165 self.occupants_list.addOccupant(new_nick)
1166 self.printInfo(_("%(old_nick)s is now known as %(new_nick)s") % {'old_nick': old_nick, 'new_nick': new_nick})
1167
1162 def historyPrint(self, size=20): 1168 def historyPrint(self, size=20):
1163 """Print the initial history""" 1169 """Print the initial history"""
1164 def getHistoryCB(history): 1170 def getHistoryCB(history):
1165 # display day change 1171 # display day change
1166 day_format = "%A, %d %b %Y" 1172 day_format = "%A, %d %b %Y"