Beispiel #1
0
    def init(self):
        self.title = 'NFS Exports'
        self.icon = 'hdd'
        self.category = 'System'
        self.append(self.ui.inflate('exports:main'))

        self.config = ExportsConfig(path='/etc/exports')
        self.binder = Binder(None, self)
        self.find('exports').new_item = lambda c: ExportData()
        self.find('clients').new_item = lambda c: ClientData()
Beispiel #2
0
    def init(self):
        self.title = 'NFS Exports'
        self.icon = 'hdd'
        self.category = 'System'
        self.append(self.ui.inflate('exports:main'))

        if not os.path.exists(self.config_path):
            open(self.config_path, 'w').close()

        self.config = ExportsConfig(path=self.config_path)
        self.binder = Binder(None, self)
        self.find('exports').new_item = lambda c: ExportData()
        self.find('clients').new_item = lambda c: ClientData()