Show More
@@ -0,0 +1,21 b'' | |||||
|
1 | # configitems.py - centralized declaration of configuration option | |||
|
2 | # | |||
|
3 | # Copyright 2017 Pierre-Yves David <pierre-yves.david@octobus.net> | |||
|
4 | # | |||
|
5 | # This software may be used and distributed according to the terms of the | |||
|
6 | # GNU General Public License version 2 or any later version. | |||
|
7 | ||||
|
8 | from __future__ import absolute_import | |||
|
9 | ||||
|
10 | class configitem(object): | |||
|
11 | """represent a known config item | |||
|
12 | ||||
|
13 | :section: the official config section where to find this item, | |||
|
14 | :name: the official name within the section, | |||
|
15 | :default: default value for this item, | |||
|
16 | """ | |||
|
17 | ||||
|
18 | def __init__(self, section, name, default=None): | |||
|
19 | self.section = section | |||
|
20 | self.name = name | |||
|
21 | self.default = default |
General Comments 0
You need to be logged in to leave comments.
Login now