# HG changeset patch # User Goffi # Date 1302993513 -7200 # Node ID 586f69e8555939deb2f4f428e6a0bd6bfe2b31e0 # Parent 77c2e48efa29c38a8908fc6fb7f370c0ed58d334 browser_side: removed some useless mess + changed delay for warning message to 2s diff -r 77c2e48efa29 -r 586f69e85559 browser_side/contact.py --- 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 diff -r 77c2e48efa29 -r 586f69e85559 browser_side/panels.py --- 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): diff -r 77c2e48efa29 -r 586f69e85559 libervia.py --- 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)