[PATCH phosphor-settingsd] Use pyphosphor rather than skeleton Openbmc.py
OpenBMC Patches
openbmc-patches at stwcx.xyz
Tue May 17 23:40:47 AEST 2016
From: Brad Bishop <bradleyb at us.ibm.com>
The Openbmc module in skeleton is going away so move to using the
bindings add ons in the pyphosphor package.
Signed-of-by: Brad Bishop <bradleyb at fuzziesquirrel.com>
---
settings_manager.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/settings_manager.py b/settings_manager.py
index 3d5cf14..d667a86 100755
--- a/settings_manager.py
+++ b/settings_manager.py
@@ -6,16 +6,16 @@ import dbus.service
import dbus.mainloop.glib
import os
import os.path as path
-import Openbmc
+from obmc.dbuslib.bindings import DbusProperties, get_dbus
import settings_file as s
DBUS_NAME = 'org.openbmc.settings.Host'
OBJ_NAME = '/org/openbmc/settings/host0'
CONTROL_INTF = 'org.openbmc.Settings'
-class HostSettingsObject(Openbmc.DbusProperties):
+class HostSettingsObject(DbusProperties):
def __init__(self, bus, name, settings, path):
- Openbmc.DbusProperties.__init__(self)
+ DbusProperties.__init__(self)
dbus.service.Object.__init__(self, bus, name)
self.path = path
@@ -79,7 +79,7 @@ class HostSettingsObject(Openbmc.DbusProperties):
if __name__ == '__main__':
dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
- bus = Openbmc.getDBus()
+ bus = get_dbus()
name = dbus.service.BusName(DBUS_NAME, bus)
obj = HostSettingsObject(bus, OBJ_NAME, s.SETTINGS, "/var/lib/obmc/")
mainloop = gobject.MainLoop()
--
2.8.2
More information about the openbmc
mailing list