deskbar-applet r1890 - in trunk: . deskbar/core



Author: sebp
Date: Tue Jan 29 10:10:48 2008
New Revision: 1890
URL: http://svn.gnome.org/viewvc/deskbar-applet?rev=1890&view=rev

Log:
Fixed AttributeError in remove_module method in ModuleList.
Use logging instead of print


Modified:
   trunk/ChangeLog
   trunk/deskbar/core/ModuleList.py

Modified: trunk/deskbar/core/ModuleList.py
==============================================================================
--- trunk/deskbar/core/ModuleList.py	(original)
+++ trunk/deskbar/core/ModuleList.py	Tue Jan 29 10:10:48 2008
@@ -1,4 +1,8 @@
-import gtk, gobject
+import gtk
+import gobject
+import logging
+
+LOGGER = logging.getLogger(__name__)
 
 class ModuleList (gtk.ListStore):
     """
@@ -116,7 +120,7 @@
     def remove_module(self, module):
         iter, index = self.get_position_from_context(module)
         if iter != None:
-            print 'Removing from modulelist:', module.INFOS['name']
+            LOGGER.debug('Removing from modulelist: '+module.INFOS['name'])
             self.remove(iter)
         
     def module_changed(self, module):
@@ -223,7 +227,7 @@
     def remove_module(self, module):
         iter, index = self.get_position_from_context(module)
         if iter != None:
-            print 'Removing from disabledModulelist:', module.__name__
+            LOGGER.debug('Removing from disabledModulelist: '+str(module))
             self.remove(iter)
 
 gobject.type_register(DisabledModuleList)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]