civics-cdf-validator 1.55.dev1__tar.gz → 1.55.dev2__tar.gz
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-1.55.dev1/civics_cdf_validator.egg-info → civics_cdf_validator-1.55.dev2}/PKG-INFO +1 -1
- {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2/civics_cdf_validator.egg-info}/PKG-INFO +1 -1
- {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/rules.py +8 -0
- {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/version.py +1 -1
- {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/CONTRIBUTING.md +0 -0
- {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/LICENSE-2.0.txt +0 -0
- {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/MANIFEST.in +0 -0
- {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/README.md +0 -0
- {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/__init__.py +0 -0
- {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/base.py +0 -0
- {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/civics_cdf_validator.egg-info/SOURCES.txt +0 -0
- {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/civics_cdf_validator.egg-info/dependency_links.txt +0 -0
- {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/civics_cdf_validator.egg-info/entry_points.txt +0 -0
- {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/civics_cdf_validator.egg-info/requires.txt +0 -0
- {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/civics_cdf_validator.egg-info/top_level.txt +0 -0
- {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/gpunit_rules.py +0 -0
- {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/loggers.py +0 -0
- {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/office_utils.py +0 -0
- {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/setup.cfg +0 -0
- {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/setup.py +0 -0
- {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/stats.py +0 -0
- {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/validator.py +0 -0
|
@@ -1356,6 +1356,14 @@ class ValidateDuplicateColors(base.TreeRule):
|
|
|
1356
1356
|
element=party_contest, element_name="PartyIds"
|
|
1357
1357
|
):
|
|
1358
1358
|
for party_id in party_ids_element.text.split():
|
|
1359
|
+
if party_id not in party_color_mapping:
|
|
1360
|
+
warning_log.append(
|
|
1361
|
+
loggers.LogEntry(
|
|
1362
|
+
"Party (%s) in PartyContest should have an assigned color."
|
|
1363
|
+
% party_id
|
|
1364
|
+
)
|
|
1365
|
+
)
|
|
1366
|
+
continue
|
|
1359
1367
|
party_color = party_color_mapping[party_id][0]
|
|
1360
1368
|
if party_color in contest_colors:
|
|
1361
1369
|
contest_colors[party_color].append(party_color_mapping[party_id][1])
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|