Mercurial > libervia-web
comparison browser_side/panels.py @ 137:b145da69a218
server + browser side: new api fix
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 22 Oct 2012 00:08:41 +0200 |
parents | ceef355156de |
children | b6658f3ac8a0 |
comparison
equal
deleted
inserted
replaced
136:9d7d98954e34 | 137:b145da69a218 |
---|---|
733 | 733 |
734 def historyPrint(self, size=20): | 734 def historyPrint(self, size=20): |
735 """Print the initial history""" | 735 """Print the initial history""" |
736 def getHistoryCB(history): | 736 def getHistoryCB(history): |
737 for line in history: | 737 for line in history: |
738 timestamp, from_jid, to_jid, message = line | 738 timestamp, from_jid, to_jid, message, mess_type = line |
739 self.printMessage(from_jid, message, timestamp) | 739 self.printMessage(from_jid, message, timestamp) |
740 self.host.bridge.call('getHistory', getHistoryCB, self.host.whoami.bare, self.target.bare, size, True) | 740 self.host.bridge.call('getHistory', getHistoryCB, self.host.whoami.bare, self.target.bare, size, True) |
741 | 741 |
742 def printInfo(self, msg, type='normal'): | 742 def printInfo(self, msg, type='normal'): |
743 """Print general info | 743 """Print general info |