forked from pe2mbs/ajenti-lvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
28 lines (25 loc) · 929 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import logging
from ajenti.api import *
from ajenti.plugins.main.api import SectionPlugin
#from ajenti.plugins.mdadm.api import PluginHeader
#from ajenti.ui import on, p, UIElement
from ajenti.ui.binder import Binder
from api import getLvmStatus
@plugin
class RAID( SectionPlugin ):
def init( self ):
self.log = logging.getLogger()
self.title = _( 'LVM' )
self.icon = 'hdd'
self.category = _( 'System' )
self.lvm = getLvmStatus()
self.append( self.ui.inflate( 'lvm:main' ) )
header = self.find( 'header' )
header.version = self.lvm.getVersion()
header.title = 'LVM'
header.plugin = 'disks'
header.author = 'PE2MBS - Marc Bertens'
header.email = '<aplugins@pe2mbs.nl>'
return
# end def
# end class