changeset 22:586f69e85559

browser_side: removed some useless mess + changed delay for warning message to 2s
author Goffi <goffi@goffi.org>
date Sun, 17 Apr 2011 00:38:33 +0200
parents 77c2e48efa29
children 0ce2a57b34ca
files browser_side/contact.py browser_side/panels.py libervia.py
diffstat 3 files changed, 1 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/browser_side/contact.py	Sun Apr 17 00:21:44 2011 +0200
+++ b/browser_side/contact.py	Sun Apr 17 00:38:33 2011 +0200
@@ -153,9 +153,6 @@
        @param group: string of single group, or list of string
        @param contact_jid: jid to test
        @return: True if contact_jid is in on of the groups"""
-       print "isContactInGroup: %s, %s" % (group, contact_jid)
-       print JID(contact_jid)
-       print self.groups[group]
        if self.groups.has_key(group) and contact_jid in self.groups[group]:
            return True
        return False
--- a/browser_side/panels.py	Sun Apr 17 00:21:44 2011 +0200
+++ b/browser_side/panels.py	Sun Apr 17 00:38:33 2011 +0200
@@ -127,7 +127,6 @@
             _new_panel = MicroblogPanel(self.host, accept_all=True)
         self.host.mpanels.remove(self)
         self.host.mpanels.append(_new_panel)
-        print "DEBUG"
         grid = self.getParent()
         row_idx, cell_idx = self._getCellAndRow(grid, event)
         self.removeFromParent()
@@ -236,10 +235,6 @@
 
     def __init__(self, timestamp, nick, mymess, msg):
         _date = datetime.fromtimestamp(float(timestamp or time()))
-        print "DEBUG"
-        print timestamp
-        print time()
-        print _date
         _msg_class = ["chat_text_msg"]
         if mymess:
             _msg_class.append("chat_text_mymess")
@@ -319,8 +314,6 @@
         self.setHeight('100%')
 
     def changePanel(self, idx, panel):
-        print "panel:",panel
-        print "idx:",idx
         self._right.setWidget(0,idx,panel)
 
 class MainPanel(VerticalPanel):
--- a/libervia.py	Sun Apr 17 00:21:44 2011 +0200
+++ b/libervia.py	Sun Apr 17 00:38:33 2011 +0200
@@ -164,14 +164,13 @@
                 del self._popup
                 self.showWarning(_target)
 
-        self._timer.schedule(1500)
+        self._timer.schedule(2000)
 
         if keycode == KEY_ENTER and not self.visible:
             if _txt:
                 if _txt.startswith('@'):
                     self.host.bridge.call('sendMblog', None, self.getText())
                 elif self.host.selected == None:
-                    print "changement de status pour", _txt
                     self.host.bridge.call('setStatus', None, _txt)
                 elif isinstance(self.host.selected, ChatPanel):
                     _chat = self.host.selected
@@ -268,18 +267,14 @@
             if not data.has_key('content'):
                 print ("WARNING: No content found in microblog data")
                 return
-            print dir('')
             if data.has_key('groups'):
                 _groups = set(data['groups'].split() if data['groups'] else [])
             else:
                 _groups=None
-            print "_groups=",_groups
             for panel in self.mpanels:
                 if isinstance(panel,MicroblogPanel) and (panel.isJidAccepted(sender) or _groups == None or _groups.intersection(panel.accepted_groups)):
-                    print "sender:",sender
                     content = data['content']
                     author = data.get('author')
-                    print "timestamp: %s" % data.get('timestamp')
                     timestamp = float(data.get('timestamp',0)) #XXX: int doesn't work here
                     panel.addEntry(content, author, timestamp)