diff browser_side/panels.py @ 334:9c6be29c714a

browser side: removed logging imports: it's not working correctly with pyjamas
author Goffi <goffi@goffi.org>
date Tue, 04 Feb 2014 16:49:20 +0100
parents 36927be51481
children 2067d6241927
line wrap: on
line diff
--- a/browser_side/panels.py	Tue Feb 04 16:49:20 2014 +0100
+++ b/browser_side/panels.py	Tue Feb 04 16:49:20 2014 +0100
@@ -58,8 +58,6 @@
 from sat_frontends.tools.games import SYMBOLS
 from sat_frontends.tools.strings import addURLToText
 
-import logging
-
 
 class UniBoxPanel(HorizontalPanel):
     """Panel containing the UniBox"""
@@ -357,7 +355,7 @@
                 self.node = data['comments_node'] if self.comments else data['node']
                 self.hash = (self.service, self.node)
             except KeyError:
-                logging.error("Warning: can't manage item [%s] some keys are missing in microblog data (%s)" % (self.id, data.keys()))
+                print "Warning: can't manage item [%s] some keys are missing in microblog data (%s)" % (self.id, str(data))
                 self.comments = False
 
 
@@ -843,7 +841,7 @@
         try:
             self.vpanel.getParent().ensureVisible(entry)  # scroll to the clicked entry
         except AttributeError:
-            logging.error("FIXME: MicroblogPanel.vpanel should be wrapped in a ScrollPanel!")
+            print "FIXME: MicroblogPanel.vpanel should be wrapped in a ScrollPanel!"
         removeStyle = lambda entry: entry.removeStyleName('selected_entry')
         if not self.host.uni_box or not entry.comments:
             entry.addStyleName('selected_entry')  # blink the clicked entry