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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: otlmow_template
3
- Version: 1.6
3
+ Version: 1.7
4
4
  Author-email: David Vlaminck <david.vlaminck@mow.vlaanderen.be>, Jasper Berton <jasperberton1@telenet.be>
5
5
  License: GNU GENERAL PUBLIC LICENSE
6
6
  Version 3, 29 June 2007
@@ -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,"', allow_blank=True)
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) + 1}"
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
- for index, option in enumerate(options, start=1):
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: otlmow_template
3
- Version: 1.6
3
+ Version: 1.7
4
4
  Author-email: David Vlaminck <david.vlaminck@mow.vlaanderen.be>, Jasper Berton <jasperberton1@telenet.be>
5
5
  License: GNU GENERAL PUBLIC LICENSE
6
6
  Version 3, 29 June 2007
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "otlmow_template"
7
- version = "1.6"
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
File without changes