def __init__(self,bus,name,is_fru,fru_type): Openbmc.DbusProperties.__init__(self) dbus.service.Object.__init__(self,bus,name) self.name = name ## this will load properties from cache PropertyCacher.load(name,INTF_NAME,self.properties) data = {'is_fru': is_fru, 'fru_type': fru_type, 'present': 'Inactive', 'fault': 'None'} self.SetMultiple(INTF_NAME,data) self.ObjectAdded(name,INTF_NAME) self.ObjectAdded(name,INTF_NAME)
def __init__(self, bus, name, is_fru, fru_type): Openbmc.DbusProperties.__init__(self) dbus.service.Object.__init__(self, bus, name) self.name = name ## this will load properties from cache PropertyCacher.load(name, INTF_NAME, self.properties) data = { 'is_fru': is_fru, 'fru_type': fru_type, 'present': 'Inactive', 'fault': 'None' } self.SetMultiple(INTF_NAME, data) self.ObjectAdded(name, INTF_NAME) self.ObjectAdded(name, INTF_NAME)
def update(self,data): self.SetMultiple(INTF_NAME,data) PropertyCacher.save(self.name,INTF_NAME,self.properties)
def update(self, data): self.SetMultiple(INTF_NAME, data) PropertyCacher.save(self.name, INTF_NAME, self.properties)