|
1
|
1 |
|
from candv import Values |
|
2
|
1 |
|
from candv import VerboseValueConstant |
|
3
|
1 |
|
from candv import with_constant_class |
|
4
|
|
|
|
|
5
|
1 |
|
from ._translations import gettext_lazy as _ |
|
6
|
|
|
|
|
7
|
|
|
|
|
8
|
1 |
|
class ConditionType(VerboseValueConstant): |
|
9
|
1 |
|
... |
|
10
|
|
|
|
|
11
|
|
|
|
|
12
|
1 |
|
class Conditions(with_constant_class(ConditionType), Values): |
|
13
|
1 |
|
clear = ConditionType(0, _("clear")) |
|
14
|
1 |
|
good = ConditionType(1, _("good")) |
|
15
|
1 |
|
hazy = ConditionType(2, _("hazy")) |
|
16
|
1 |
|
poor = ConditionType(3, _("poor")) |
|
17
|
1 |
|
blind = ConditionType(4, _("blind")) |
|
18
|
1 |
|
precipitation = ConditionType(5, _("precipitation")) |
|
19
|
1 |
|
thunderstorm = ConditionType(6, _("thunderstorm")) |
|
20
|
|
|
|
|
21
|
|
|
|
|
22
|
1 |
|
class GustType(VerboseValueConstant): |
|
23
|
1 |
|
... |
|
24
|
|
|
|
|
25
|
|
|
|
|
26
|
1 |
|
class Gust(with_constant_class(GustType), Values): |
|
27
|
1 |
|
none = GustType(0, _("none")) |
|
28
|
1 |
|
low = GustType(8, _("low_gust")) |
|
29
|
1 |
|
moderate = GustType(10, _("moderate_gust")) |
|
30
|
1 |
|
strong = GustType(12, _("strong_gust")) |
|
31
|
|
|
|
|
32
|
|
|
|
|
33
|
1 |
|
class TurbulenceType(VerboseValueConstant): |
|
34
|
1 |
|
... |
|
35
|
|
|
|
|
36
|
|
|
|
|
37
|
1 |
|
class Turbulence(with_constant_class(TurbulenceType), Values): |
|
38
|
1 |
|
none = TurbulenceType(0, _("none")) |
|
39
|
1 |
|
low = TurbulenceType(3, _("low_turbulence")) |
|
40
|
1 |
|
moderate = TurbulenceType(4, _("moderate_turbulence")) |
|
41
|
1 |
|
strong = TurbulenceType(5, _("strong_turbulence")) |
|
42
|
|
|
very_strong = TurbulenceType(6, _("very_strong_turbulence")) |
|
43
|
|
|
|