Пример #1
0
    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)
Пример #2
0
    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)
Пример #3
0
    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)
Пример #4
0
 def on_prepare(self):
     self.mgr = RAIDManager.get()
     self.append(self.ui.inflate('megaraid:widget'))