civics-cdf-validator 1.49.dev16__py3-none-any.whl → 1.49.dev17__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 +11 -4
- civics_cdf_validator/version.py +1 -1
- {civics_cdf_validator-1.49.dev16.dist-info → civics_cdf_validator-1.49.dev17.dist-info}/METADATA +1 -1
- {civics_cdf_validator-1.49.dev16.dist-info → civics_cdf_validator-1.49.dev17.dist-info}/RECORD +8 -8
- {civics_cdf_validator-1.49.dev16.dist-info → civics_cdf_validator-1.49.dev17.dist-info}/WHEEL +0 -0
- {civics_cdf_validator-1.49.dev16.dist-info → civics_cdf_validator-1.49.dev17.dist-info}/entry_points.txt +0 -0
- {civics_cdf_validator-1.49.dev16.dist-info → civics_cdf_validator-1.49.dev17.dist-info}/licenses/LICENSE-2.0.txt +0 -0
- {civics_cdf_validator-1.49.dev16.dist-info → civics_cdf_validator-1.49.dev17.dist-info}/top_level.txt +0 -0
civics_cdf_validator/rules.py
CHANGED
|
@@ -3489,9 +3489,6 @@ class MissingFieldsInfo(base.MissingFieldRule):
|
|
|
3489
3489
|
|
|
3490
3490
|
def element_field_mapping(self):
|
|
3491
3491
|
return {
|
|
3492
|
-
"Office": [
|
|
3493
|
-
"ElectoralDistrictId",
|
|
3494
|
-
],
|
|
3495
3492
|
}
|
|
3496
3493
|
|
|
3497
3494
|
|
|
@@ -4511,10 +4508,20 @@ class UnreferencedEntitiesOfficeholders(UnreferencedEntitiesBase):
|
|
|
4511
4508
|
"""
|
|
4512
4509
|
|
|
4513
4510
|
def __init__(self, election_tree, schema_tree, **kwargs):
|
|
4511
|
+
office_holder_tenure_collection = self.get_elements_by_class(
|
|
4512
|
+
election_tree, "OfficeHolderTenure"
|
|
4513
|
+
)
|
|
4514
|
+
is_post_office_split = False
|
|
4515
|
+
if office_holder_tenure_collection:
|
|
4516
|
+
is_post_office_split = True
|
|
4514
4517
|
super(UnreferencedEntitiesOfficeholders, self).__init__(
|
|
4515
4518
|
election_tree,
|
|
4516
4519
|
schema_tree,
|
|
4517
|
-
|
|
4520
|
+
(
|
|
4521
|
+
frozenset(["OfficeHolderTenure", "Leadership"])
|
|
4522
|
+
if is_post_office_split
|
|
4523
|
+
else frozenset(["Office", "Leadership"])
|
|
4524
|
+
),
|
|
4518
4525
|
frozenset(["Party"]),
|
|
4519
4526
|
**kwargs,
|
|
4520
4527
|
)
|
civics_cdf_validator/version.py
CHANGED
{civics_cdf_validator-1.49.dev16.dist-info → civics_cdf_validator-1.49.dev17.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=m_6wmnv7osSzwovnGYnfrwWC_MJ5gu9NIAk05FOshXw,163926
|
|
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=WLrSpq7U81dytfS7H3E2IaTVsV4NmW3ya1aL4650vSg,189
|
|
10
|
+
civics_cdf_validator-1.49.dev17.dist-info/licenses/LICENSE-2.0.txt,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
11
|
+
civics_cdf_validator-1.49.dev17.dist-info/METADATA,sha256=lUep_VsVfQHH1waP5IY0-4PK_o-GimjoT1sPeF8oTWw,1009
|
|
12
|
+
civics_cdf_validator-1.49.dev17.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
13
|
+
civics_cdf_validator-1.49.dev17.dist-info/entry_points.txt,sha256=QibgvtMOocwDi7fQ1emgMJ2lIlI41sW0__KIQdnVn90,77
|
|
14
|
+
civics_cdf_validator-1.49.dev17.dist-info/top_level.txt,sha256=PYT5Eclxbop5o6DJIcgs4IeU6Ds5jqyftjoFbgkkJYo,21
|
|
15
|
+
civics_cdf_validator-1.49.dev17.dist-info/RECORD,,
|
{civics_cdf_validator-1.49.dev16.dist-info → civics_cdf_validator-1.49.dev17.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|