comparison browser_side/panels.py @ 190:abebe6d55e0a

browser side: removed messages debug traces
author Goffi <goffi@goffi.org>
date Sun, 03 Mar 2013 22:16:29 +0100
parents 39936b83da9d
children 8213e22c1120
comparison
equal deleted inserted replaced
189:67365f17069e 190:abebe6d55e0a
793 self.content.add(_wid) 793 self.content.add(_wid)
794 794
795 795
796 def printMessage(self, from_jid, msg, timestamp=None): 796 def printMessage(self, from_jid, msg, timestamp=None):
797 """Print message in chat window. Must be implemented by child class""" 797 """Print message in chat window. Must be implemented by child class"""
798 print "print message:",msg
799 _jid=JID(from_jid) 798 _jid=JID(from_jid)
800 nick = _jid.node if self.type=='one2one' else _jid.resource 799 nick = _jid.node if self.type=='one2one' else _jid.resource
801 mymess = _jid.resource == self.nick if self.type == "group" else _jid.bare == self.host.whoami.bare #mymess = True if message comes from local user 800 mymess = _jid.resource == self.nick if self.type == "group" else _jid.bare == self.host.whoami.bare #mymess = True if message comes from local user
802 if msg.startswith('/me '): 801 if msg.startswith('/me '):
803 self.printInfo('* %s %s' % (nick, msg[4:]),type='me') 802 self.printInfo('* %s %s' % (nick, msg[4:]),type='me')