1
|
|
|
# -*- coding: utf-8 -*- |
2
|
|
|
|
3
|
1 |
|
from candv import Values, VerboseValueConstant |
4
|
|
|
|
5
|
1 |
|
from .utils import translations |
6
|
|
|
|
7
|
|
|
|
8
|
1 |
|
_ = translations.ugettext_lazy |
9
|
|
|
|
10
|
|
|
|
11
|
1 |
|
class Conditions(Values): |
12
|
1 |
|
clear = VerboseValueConstant(0, _("clear")) |
13
|
1 |
|
good = VerboseValueConstant(1, _("good")) |
14
|
1 |
|
hazy = VerboseValueConstant(2, _("hazy")) |
15
|
1 |
|
poor = VerboseValueConstant(3, _("poor")) |
16
|
1 |
|
blind = VerboseValueConstant(4, _("blind")) |
17
|
1 |
|
precipitation = VerboseValueConstant(5, _("precipitation")) |
18
|
1 |
|
thunderstorm = VerboseValueConstant(6, _("thunderstorm")) |
19
|
|
|
|
20
|
|
|
|
21
|
1 |
|
class Gust(Values): |
22
|
1 |
|
none = VerboseValueConstant(0, _("none")) |
23
|
1 |
|
low = VerboseValueConstant(8, _("low_gust")) |
24
|
1 |
|
moderate = VerboseValueConstant(10, _("moderate_gust")) |
25
|
1 |
|
strong = VerboseValueConstant(12, _("strong_gust")) |
26
|
|
|
|
27
|
|
|
|
28
|
1 |
|
class Turbulence(Values): |
29
|
1 |
|
none = VerboseValueConstant(0, _("none")) |
30
|
1 |
|
low = VerboseValueConstant(3, _("low_turbulence")) |
31
|
1 |
|
moderate = VerboseValueConstant(4, _("moderate_turbulence")) |
32
|
1 |
|
strong = VerboseValueConstant(5, _("strong_turbulence")) |
33
|
|
|
very_strong = VerboseValueConstant(6, _("very_strong_turbulence")) |
34
|
|
|
|