def init(self): self.title = 'LSI MegaRAID' self.icon = 'hdd' self.category = _('System') self.append(self.ui.inflate('megaraid:main')) self.mgr = RAIDManager.get() self.binder = Binder(self.mgr, self)
def init(self): self.title = _('RAID') self.icon = 'hdd' self.category = _('System') self.append(self.ui.inflate('raid:main')) def post_array_bind(o, c, i, u): u.find('recovery').visible = i.recovery self.find('arrays').post_item_bind = post_array_bind self.mgr = RAIDManager.get() self.binder = Binder(None, self)
def init(self): self.title = _('RAID') self.icon = 'hdd' self.category = _('System') self.append(self.ui.inflate('raid:main')) def post_array_bind(o, c, i, u): u.find('recovery').visible = i.recovery self.find('arrays').post_item_bind = post_array_bind self.mgr = RAIDManager.get() self.binder = Binder(self.mgr, self)
def on_prepare(self): self.mgr = RAIDManager.get() self.append(self.ui.inflate('megaraid:widget'))