aboutsummaryrefslogtreecommitdiff
blob: ac4daa76dc8fee176c63eac12b65ea049e2ba5b4 (plain)
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
# Copyright 2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

'''
JSON database plug-in module for layman.
'''

module_spec = {
    'name': 'json_db',
    'description': __doc__,
    'provides':{
        'json-module': {
            'name': 'json_db',
            'class': 'DBHandler',
            'description': __doc__,
            'functions': ['add_new', 'read_db', 'remove', 'write'],
            'func_desc': {
                'add_new': 'Adds overlay(s) from provided database text',
                'read_db': 'Reads the list of overlays from database file',
                'remove' : 'Removes overlay from installed overlays list',
                'write'  : 'Writes the list of overlays to database file',
            },
        }
    }
}