Total Complexity | 1 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | """Data structures for all settings.""" |
||
2 | |||
3 | 1 | import yorm |
|
4 | |||
5 | 1 | from .application import Applications |
|
6 | from .computer import Computers |
||
7 | 1 | ||
8 | 1 | ||
9 | @yorm.attr(computers=Computers) |
||
10 | @yorm.attr(applications=Applications) |
||
11 | 1 | class ProgramConfig(yorm.types.AttributeDictionary): |
|
12 | """Dictionary of program configuration settings.""" |
||
13 | |||
14 | 1 | def __init__(self, applications=None, computers=None): |
|
15 | 1 | super().__init__() |
|
16 | 1 | self.applications = applications or Applications() |
|
17 | self.computers = computers or Computers() |
||
18 |