civics-cdf-validator 1.49.dev16__py3-none-any.whl → 1.49.dev18__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.
- civics_cdf_validator/rules.py +12 -4
- civics_cdf_validator/version.py +1 -1
- {civics_cdf_validator-1.49.dev16.dist-info → civics_cdf_validator-1.49.dev18.dist-info}/METADATA +1 -1
- {civics_cdf_validator-1.49.dev16.dist-info → civics_cdf_validator-1.49.dev18.dist-info}/RECORD +8 -8
- {civics_cdf_validator-1.49.dev16.dist-info → civics_cdf_validator-1.49.dev18.dist-info}/WHEEL +0 -0
- {civics_cdf_validator-1.49.dev16.dist-info → civics_cdf_validator-1.49.dev18.dist-info}/entry_points.txt +0 -0
- {civics_cdf_validator-1.49.dev16.dist-info → civics_cdf_validator-1.49.dev18.dist-info}/licenses/LICENSE-2.0.txt +0 -0
- {civics_cdf_validator-1.49.dev16.dist-info → civics_cdf_validator-1.49.dev18.dist-info}/top_level.txt +0 -0
civics_cdf_validator/rules.py
CHANGED
|
@@ -2268,6 +2268,7 @@ class ValidURIAnnotation(base.BaseRule):
|
|
|
2268
2268
|
"line",
|
|
2269
2269
|
"linkedin",
|
|
2270
2270
|
"tiktok",
|
|
2271
|
+
"whatsapp",
|
|
2271
2272
|
])
|
|
2272
2273
|
USAGE_TYPES = frozenset(["personal", "official", "campaign"])
|
|
2273
2274
|
PLATFORM_ONLY_ANNOTATIONS = frozenset(
|
|
@@ -3489,9 +3490,6 @@ class MissingFieldsInfo(base.MissingFieldRule):
|
|
|
3489
3490
|
|
|
3490
3491
|
def element_field_mapping(self):
|
|
3491
3492
|
return {
|
|
3492
|
-
"Office": [
|
|
3493
|
-
"ElectoralDistrictId",
|
|
3494
|
-
],
|
|
3495
3493
|
}
|
|
3496
3494
|
|
|
3497
3495
|
|
|
@@ -4511,10 +4509,20 @@ class UnreferencedEntitiesOfficeholders(UnreferencedEntitiesBase):
|
|
|
4511
4509
|
"""
|
|
4512
4510
|
|
|
4513
4511
|
def __init__(self, election_tree, schema_tree, **kwargs):
|
|
4512
|
+
office_holder_tenure_collection = self.get_elements_by_class(
|
|
4513
|
+
election_tree, "OfficeHolderTenure"
|
|
4514
|
+
)
|
|
4515
|
+
is_post_office_split = False
|
|
4516
|
+
if office_holder_tenure_collection:
|
|
4517
|
+
is_post_office_split = True
|
|
4514
4518
|
super(UnreferencedEntitiesOfficeholders, self).__init__(
|
|
4515
4519
|
election_tree,
|
|
4516
4520
|
schema_tree,
|
|
4517
|
-
|
|
4521
|
+
(
|
|
4522
|
+
frozenset(["OfficeHolderTenure", "Leadership"])
|
|
4523
|
+
if is_post_office_split
|
|
4524
|
+
else frozenset(["Office", "Leadership"])
|
|
4525
|
+
),
|
|
4518
4526
|
frozenset(["Party"]),
|
|
4519
4527
|
**kwargs,
|
|
4520
4528
|
)
|
civics_cdf_validator/version.py
CHANGED
{civics_cdf_validator-1.49.dev16.dist-info → civics_cdf_validator-1.49.dev18.dist-info}/RECORD
RENAMED
|
@@ -3,13 +3,13 @@ civics_cdf_validator/base.py,sha256=5zntjAdAA-bdwYOOStFgUle9LGX_ccelS--thMhUG9A,
|
|
|
3
3
|
civics_cdf_validator/gpunit_rules.py,sha256=Cg-qlOeVKTCQ5qUKYSxbVrrh3tdLt1X5Eg-7uyyR_SY,9487
|
|
4
4
|
civics_cdf_validator/loggers.py,sha256=ZfWFd9yskcd2-qb83EPz7eqa1iGO8BRFMtDZeE1hofA,6921
|
|
5
5
|
civics_cdf_validator/office_utils.py,sha256=aFxcFQZF2oBn0gPXt_kv1LxHGvwzABScT8X5yaYtVLw,2705
|
|
6
|
-
civics_cdf_validator/rules.py,sha256=
|
|
6
|
+
civics_cdf_validator/rules.py,sha256=yTf5dQhnpM7Ueo3TjyEzIa1Me8ftDKcksPYxIYHxf7g,163944
|
|
7
7
|
civics_cdf_validator/stats.py,sha256=YNqv3Khkt_hJxCIunFBRSl23oXqu5gNjCmWMHFbAcSU,3819
|
|
8
8
|
civics_cdf_validator/validator.py,sha256=2nwlFfQ9AmpTaO5n5ekaO845Rm0JPjNF-Il6FJW_50k,12678
|
|
9
|
-
civics_cdf_validator/version.py,sha256=
|
|
10
|
-
civics_cdf_validator-1.49.
|
|
11
|
-
civics_cdf_validator-1.49.
|
|
12
|
-
civics_cdf_validator-1.49.
|
|
13
|
-
civics_cdf_validator-1.49.
|
|
14
|
-
civics_cdf_validator-1.49.
|
|
15
|
-
civics_cdf_validator-1.49.
|
|
9
|
+
civics_cdf_validator/version.py,sha256=P0GchCBh1tp9qkZjIu_STb2LatUzg2aXEwK0Le07YG0,189
|
|
10
|
+
civics_cdf_validator-1.49.dev18.dist-info/licenses/LICENSE-2.0.txt,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
11
|
+
civics_cdf_validator-1.49.dev18.dist-info/METADATA,sha256=PCBQJRYnOidRsO9rs4f5llGhixoYcWjWII7WNEH7-Ek,1009
|
|
12
|
+
civics_cdf_validator-1.49.dev18.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
13
|
+
civics_cdf_validator-1.49.dev18.dist-info/entry_points.txt,sha256=QibgvtMOocwDi7fQ1emgMJ2lIlI41sW0__KIQdnVn90,77
|
|
14
|
+
civics_cdf_validator-1.49.dev18.dist-info/top_level.txt,sha256=PYT5Eclxbop5o6DJIcgs4IeU6Ds5jqyftjoFbgkkJYo,21
|
|
15
|
+
civics_cdf_validator-1.49.dev18.dist-info/RECORD,,
|
{civics_cdf_validator-1.49.dev16.dist-info → civics_cdf_validator-1.49.dev18.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|