Mercurial > libervia-web
diff libervia.py @ 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 |
line wrap: on
line diff
--- 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)