[totem] plugins: Disable some pylint messages in the D-Bus plugin



commit f16279679c2c12992d838078faedffeea961b648
Author: Philip Withnall <philip tecnocode co uk>
Date:   Mon Apr 4 22:44:55 2011 +0100

    plugins: Disable some pylint messages in the D-Bus plugin
    
    It's complaining about D-Busâ??exported interfaces not being implemented.
    Silly pylint.
    
    Helps: bgo#645739

 src/plugins/dbusservice/dbusservice.py |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/plugins/dbusservice/dbusservice.py b/src/plugins/dbusservice/dbusservice.py
index 91e2d43..bae6b8c 100644
--- a/src/plugins/dbusservice/dbusservice.py
+++ b/src/plugins/dbusservice/dbusservice.py
@@ -50,7 +50,7 @@ class DbusService (GObject.Object, Peas.Activatable):
         self.player.disconnect ()
         self.track_list.disconnect ()
 
-class Root (dbus.service.Object):
+class Root (dbus.service.Object): # pylint: disable-msg=R0923
     def __init__ (self, name, totem):
         dbus.service.Object.__init__ (self, name, '/')
         self.totem = totem
@@ -77,7 +77,7 @@ class Root (dbus.service.Object):
         return dbus.Struct ((dbus.UInt16 (1), dbus.UInt16 (0)),
                             signature = '(qq)')
 
-class Player (dbus.service.Object):
+class Player (dbus.service.Object): # pylint: disable-msg=R0923,R0904
     def __init__ (self, name, totem):
         dbus.service.Object.__init__ (self, name, '/Player')
         self.totem = totem
@@ -97,7 +97,8 @@ class Player (dbus.service.Object):
         totem.connect ("notify::seekable", self.__do_notify)
         totem.connect ("notify::current-mrl", self.__do_notify)
 
-    def __do_update_metadata (self, totem, artist, title, album, num):
+    def __do_update_metadata (self, totem, artist, # pylint: disable-msg=R0913
+                              title, album, num):
         self.current_metadata = self.null_metadata.copy ()
         if title:
             self.current_metadata["title"] = title
@@ -296,7 +297,7 @@ class Player (dbus.service.Object):
     def PositionGet (self):
         return dbus.Int32 (self.totem.props.current_time)
 
-class TrackList (dbus.service.Object):
+class TrackList (dbus.service.Object): # pylint: disable-msg=R0923
     def __init__ (self, name, totem):
         dbus.service.Object.__init__ (self, name, '/TrackList')
         self.totem = totem



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