bindings: cooperative multiple inheritance
Update Properties and ObjectManager constructors
such that they cooperate in a multiple inheritance
hierarchy.
For details, see this blog post referenced by the
official python documentation:
https://rhettinger.wordpress.com/2011/05/26/super-considered-super
Change-Id: I586e6fa9f1a369693c73b9307786d3c8a05dd9a3
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/obmc/dbuslib/bindings.py b/obmc/dbuslib/bindings.py
index 0135ce7..203b56f 100644
--- a/obmc/dbuslib/bindings.py
+++ b/obmc/dbuslib/bindings.py
@@ -30,10 +30,9 @@
class DbusProperties(dbus.service.Object):
- def __init__(self):
- dbus.service.Object.__init__(self)
+ def __init__(self, **kw):
+ super(DbusProperties, self).__init__(**kw)
self.properties = {}
- self.object_path = ""
self._export = False
def unmask_signals(self):
@@ -120,8 +119,8 @@
class DbusObjectManager(dbus.service.Object):
- def __init__(self):
- dbus.service.Object.__init__(self)
+ def __init__(self, **kw):
+ super(DbusObjectManager, self).__init__(**kw)
self.objects = {}
self._export = False