diff libervia.py @ 235:b304cdf13a3b

browser and server side: XHTML handling, first draft: - added the extra parameter for getHistory and newMessage to manage xhtml - if present, XHTML is shown instead of regular text message
author Goffi <goffi@goffi.org>
date Thu, 07 Nov 2013 15:22:00 +0100
parents 266e9678eec0
children b911f2b43fd4
line wrap: on
line diff
--- a/libervia.py	Thu Oct 31 17:54:10 2013 +0100
+++ b/libervia.py	Thu Nov 07 15:22:00 2013 +0100
@@ -507,13 +507,13 @@
             lib_wid.refresh()
         return lib_wid
 
-    def _newMessageCb(self, from_jid, msg, msg_type, to_jid):
+    def _newMessageCb(self, from_jid, msg, msg_type, to_jid, extra):
         _from = JID(from_jid)
         _to = JID(to_jid)
         other = _to if _from.bare == self.whoami.bare else _from
         lib_wid = self.getLiberviaWidget(panels.ChatPanel, other, ignoreOtherTabs=False)
         if lib_wid is not None:
-            lib_wid.printMessage(_from, msg)
+            lib_wid.printMessage(_from, msg, extra)
         else:
             # The message has not been showed, we must indicate it
             self.contact_panel.setContactMessageWaiting(other.bare, True)