otlmow-template 1.6__tar.gz → 1.7__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.
- {otlmow_template-1.6 → otlmow_template-1.7}/PKG-INFO +1 -1
- {otlmow_template-1.6 → otlmow_template-1.7}/otlmow_template/SubsetTemplateCreator.py +5 -3
- {otlmow_template-1.6 → otlmow_template-1.7}/otlmow_template.egg-info/PKG-INFO +1 -1
- {otlmow_template-1.6 → otlmow_template-1.7}/pyproject.toml +1 -1
- {otlmow_template-1.6 → otlmow_template-1.7}/LICENSE +0 -0
- {otlmow_template-1.6 → otlmow_template-1.7}/README.md +0 -0
- {otlmow_template-1.6 → otlmow_template-1.7}/otlmow_template/Exceptions/MissingTypeUriException.py +0 -0
- {otlmow_template-1.6 → otlmow_template-1.7}/otlmow_template.egg-info/SOURCES.txt +0 -0
- {otlmow_template-1.6 → otlmow_template-1.7}/otlmow_template.egg-info/dependency_links.txt +0 -0
- {otlmow_template-1.6 → otlmow_template-1.7}/otlmow_template.egg-info/requires.txt +0 -0
- {otlmow_template-1.6 → otlmow_template-1.7}/otlmow_template.egg-info/top_level.txt +0 -0
- {otlmow_template-1.6 → otlmow_template-1.7}/setup.cfg +0 -0
|
@@ -483,7 +483,7 @@ class SubsetTemplateCreator:
|
|
|
483
483
|
if instance is None:
|
|
484
484
|
raise UnknownExcelError(f'When creating a template, no instance could be created for {type_uri}')
|
|
485
485
|
|
|
486
|
-
boolean_validation = DataValidation(type="list", formula1='"TRUE,FALSE
|
|
486
|
+
boolean_validation = DataValidation(type="list", formula1='"TRUE,FALSE,-"', allow_blank=True)
|
|
487
487
|
sheet.add_data_validation(boolean_validation)
|
|
488
488
|
collected_attribute_info = []
|
|
489
489
|
deprecated_attributes_row = []
|
|
@@ -573,7 +573,7 @@ class SubsetTemplateCreator:
|
|
|
573
573
|
options=choice_list_values, choice_list_dict=choice_list_dict)
|
|
574
574
|
column_in_choice_sheet = choice_list_dict[attribute.field.naam]
|
|
575
575
|
start_range = f"${column_in_choice_sheet}$2"
|
|
576
|
-
end_range = f"${column_in_choice_sheet}${len(choice_list_values) +
|
|
576
|
+
end_range = f"${column_in_choice_sheet}${len(choice_list_values) + 2}"
|
|
577
577
|
data_val = DataValidation(type="list", formula1=f"Keuzelijsten!{start_range}:{end_range}",
|
|
578
578
|
allowBlank=True)
|
|
579
579
|
sheet.add_data_validation(data_val)
|
|
@@ -603,7 +603,9 @@ class SubsetTemplateCreator:
|
|
|
603
603
|
if new_header.value is not None:
|
|
604
604
|
raise ValueError(f'Header already exists at column {column_nr}: {new_header.value}')
|
|
605
605
|
new_header.value = name
|
|
606
|
-
|
|
606
|
+
cell = active_sheet.cell(row=row_nr + 1, column=column_nr)
|
|
607
|
+
cell.value = "-"
|
|
608
|
+
for index, option in enumerate(options, start=2):
|
|
607
609
|
cell = active_sheet.cell(row=row_nr + index, column=column_nr)
|
|
608
610
|
cell.value = option.invulwaarde
|
|
609
611
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "otlmow_template"
|
|
7
|
-
version = "1.
|
|
7
|
+
version = "1.7"
|
|
8
8
|
authors = [{name = "David Vlaminck", email = "david.vlaminck@mow.vlaanderen.be"},
|
|
9
9
|
{name = "Jasper Berton", email = "jasperberton1@telenet.be"},]
|
|
10
10
|
readme = "README.md"
|
|
File without changes
|
|
File without changes
|
{otlmow_template-1.6 → otlmow_template-1.7}/otlmow_template/Exceptions/MissingTypeUriException.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|