python-terminusgps 42.2.3__py3-none-any.whl → 42.2.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_terminusgps-42.2.3.dist-info → python_terminusgps-42.2.4.dist-info}/METADATA +1 -1
- {python_terminusgps-42.2.3.dist-info → python_terminusgps-42.2.4.dist-info}/RECORD +5 -5
- terminusgps/django/validators.py +9 -9
- {python_terminusgps-42.2.3.dist-info → python_terminusgps-42.2.4.dist-info}/WHEEL +0 -0
- {python_terminusgps-42.2.3.dist-info → python_terminusgps-42.2.4.dist-info}/licenses/COPYING +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-terminusgps
|
|
3
|
-
Version: 42.2.
|
|
3
|
+
Version: 42.2.4
|
|
4
4
|
Summary: Provides abstractions/utilities for working with Wialon API, Authorize.NET API, AWS API, and more.
|
|
5
5
|
Project-URL: Documentation, https://docs.terminusgps.com
|
|
6
6
|
Project-URL: Repository, https://github.com/terminusgps/python-terminusgps
|
|
@@ -14,7 +14,7 @@ terminusgps/django/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
|
|
|
14
14
|
terminusgps/django/mixins.py,sha256=Q9ZJuzpk3d9lDnlVA8ZTVvnZWxB13p08EQ8yVJcztn4,1034
|
|
15
15
|
terminusgps/django/settings.py,sha256=NLjcdnD_Ny_04eNNVWabUwzWvw0zS_-ebXnzhx8PJRU,691
|
|
16
16
|
terminusgps/django/utils.py,sha256=SYDQyHA5tTuVwdpZGsCtf0LpTTD0ilRKoxa8StfSTpQ,156
|
|
17
|
-
terminusgps/django/validators.py,sha256=
|
|
17
|
+
terminusgps/django/validators.py,sha256=chuJ4I1DBQ_H5dwb6CXPEIyv_CUuEzJzRUSijfss1vc,3510
|
|
18
18
|
terminusgps/django/forms/__init__.py,sha256=hh8Z9AC_u2m2bu3h6sdmPyndfQneCEVovENPHmoTDC0,21
|
|
19
19
|
terminusgps/django/forms/fields.py,sha256=BfuPzOZyGvWsEzONW2h4i01fhoL0IS0-gDdBKW4jHgI,2225
|
|
20
20
|
terminusgps/django/forms/forms.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -36,7 +36,7 @@ terminusgps/wialon/items/route.py,sha256=xixlex6bUeFHXucVQdbfQUSLxI1Rhwk6slhoFP2
|
|
|
36
36
|
terminusgps/wialon/items/unit.py,sha256=kIjnMOjjI3siCaA6wXojzEK2xqFIm5mN4xNqzKDUa1Q,5473
|
|
37
37
|
terminusgps/wialon/items/unit_group.py,sha256=L7-PAVCj8Bf50fa04Ials4VHg8LOWkw6hwNhtSyMksE,2133
|
|
38
38
|
terminusgps/wialon/items/user.py,sha256=hZlFeXCgOAdivl_Anjp_We6Cy5U8IxWNDAgm5MFZfp0,5194
|
|
39
|
-
python_terminusgps-42.2.
|
|
40
|
-
python_terminusgps-42.2.
|
|
41
|
-
python_terminusgps-42.2.
|
|
42
|
-
python_terminusgps-42.2.
|
|
39
|
+
python_terminusgps-42.2.4.dist-info/METADATA,sha256=DabAX2ZDEBc_J7pp6D3DSKGfpfTpUdD9IQlXxgipiqk,976
|
|
40
|
+
python_terminusgps-42.2.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
41
|
+
python_terminusgps-42.2.4.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
42
|
+
python_terminusgps-42.2.4.dist-info/RECORD,,
|
terminusgps/django/validators.py
CHANGED
|
@@ -30,26 +30,26 @@ def validate_e164_phone_number(value: str) -> None:
|
|
|
30
30
|
code="invalid",
|
|
31
31
|
params={"value": value},
|
|
32
32
|
)
|
|
33
|
-
if len(value) <
|
|
33
|
+
if len(value) < 12:
|
|
34
34
|
raise ValidationError(
|
|
35
35
|
_(
|
|
36
|
-
"E.164 phone number cannot be less than
|
|
36
|
+
"E.164 phone number cannot be less than 12 characters in length, got %(len)s."
|
|
37
37
|
),
|
|
38
38
|
code="invalid",
|
|
39
39
|
params={"len": len(value)},
|
|
40
40
|
)
|
|
41
|
-
if len(value) >
|
|
41
|
+
if len(value) > 15:
|
|
42
42
|
raise ValidationError(
|
|
43
43
|
_(
|
|
44
|
-
"E.164 phone number cannot be greater than
|
|
44
|
+
"E.164 phone number cannot be greater than 15 characters in length, got %(len)s."
|
|
45
45
|
),
|
|
46
46
|
code="invalid",
|
|
47
47
|
params={"len": len(value)},
|
|
48
48
|
)
|
|
49
49
|
|
|
50
|
-
country_code
|
|
51
|
-
area_code
|
|
52
|
-
subscriber_number
|
|
50
|
+
country_code = value[:-10]
|
|
51
|
+
area_code = value[-10:-7]
|
|
52
|
+
subscriber_number = value[-7:]
|
|
53
53
|
|
|
54
54
|
if len(country_code) < 2 or len(country_code) > 5:
|
|
55
55
|
raise ValidationError(
|
|
@@ -77,7 +77,7 @@ def validate_e164_phone_number(value: str) -> None:
|
|
|
77
77
|
)
|
|
78
78
|
if not area_code.isdigit():
|
|
79
79
|
raise ValidationError(
|
|
80
|
-
_("E.164 phone number must have a valid area code, got '%(area_code)s'"),
|
|
80
|
+
_("E.164 phone number must have a valid area code, got '%(area_code)s'."),
|
|
81
81
|
code="invalid",
|
|
82
82
|
params={"area_code": area_code},
|
|
83
83
|
)
|
|
@@ -92,7 +92,7 @@ def validate_e164_phone_number(value: str) -> None:
|
|
|
92
92
|
if not subscriber_number.isdigit():
|
|
93
93
|
raise ValidationError(
|
|
94
94
|
_(
|
|
95
|
-
"E.164 phone number must have a valid subscriber number, got '%(subscriber_number)s'"
|
|
95
|
+
"E.164 phone number must have a valid subscriber number, got '%(subscriber_number)s'."
|
|
96
96
|
),
|
|
97
97
|
code="invalid",
|
|
98
98
|
params={"subscriber_number": subscriber_number},
|
|
File without changes
|
{python_terminusgps-42.2.3.dist-info → python_terminusgps-42.2.4.dist-info}/licenses/COPYING
RENAMED
|
File without changes
|