diff options
| author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2016-09-08 22:16:58 -0400 |
|---|---|---|
| committer | Patrick Williams <patrick@stwcx.xyz> | 2016-09-12 19:25:57 +0000 |
| commit | d874f0b030e54b86a4cb14b8699853bf6d0d21d0 (patch) | |
| tree | 01aa8dec6b29c5d277fc7df7c9fa9e329a35103a /obmc | |
| parent | 84ed6e17902e4e0894279e981dd11c0507a0ae43 (diff) | |
| download | pyphosphor-d874f0b030e54b86a4cb14b8699853bf6d0d21d0.tar.gz pyphosphor-d874f0b030e54b86a4cb14b8699853bf6d0d21d0.zip | |
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>
Diffstat (limited to 'obmc')
| -rw-r--r-- | obmc/dbuslib/bindings.py | 9 |
1 files changed, 4 insertions, 5 deletions
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 @@ def get_dbus(): 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 DbusProperties(dbus.service.Object): 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 |

