Mercurial > libervia-web
comparison src/browser/sat_browser/panels.py @ 564:fed185c95f1c
browser_side: add XMLUI "int" widget type + historyPrint uses the new param "Chat history limit"
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 03 Oct 2014 12:33:03 +0200 |
parents | 77372641e05d |
children | ee9c7bd266ad |
comparison
equal
deleted
inserted
replaced
563:d888bb2a23a9 | 564:fed185c95f1c |
---|---|
1250 assert(self.type == "group") | 1250 assert(self.type == "group") |
1251 self.occupants_list.removeOccupant(old_nick) | 1251 self.occupants_list.removeOccupant(old_nick) |
1252 self.occupants_list.addOccupant(new_nick) | 1252 self.occupants_list.addOccupant(new_nick) |
1253 self.printInfo(_("%(old_nick)s is now known as %(new_nick)s") % {'old_nick': old_nick, 'new_nick': new_nick}) | 1253 self.printInfo(_("%(old_nick)s is now known as %(new_nick)s") % {'old_nick': old_nick, 'new_nick': new_nick}) |
1254 | 1254 |
1255 def historyPrint(self, size=20): | 1255 def historyPrint(self, size=C.HISTORY_LIMIT_DEFAULT): |
1256 """Print the initial history""" | 1256 """Print the initial history""" |
1257 def getHistoryCB(history): | 1257 def getHistoryCB(history): |
1258 # display day change | 1258 # display day change |
1259 day_format = "%A, %d %b %Y" | 1259 day_format = "%A, %d %b %Y" |
1260 previous_day = datetime.now().strftime(day_format) | 1260 previous_day = datetime.now().strftime(day_format) |