otlmow-template 0.8__tar.gz → 0.9__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.1
2
2
  Name: otlmow_template
3
- Version: 0.8
3
+ Version: 0.9
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
@@ -8,7 +8,7 @@ from pathlib import Path
8
8
 
9
9
 
10
10
  from openpyxl.reader.excel import load_workbook
11
- from openpyxl.styles import PatternFill
11
+ from openpyxl.styles import PatternFill, Alignment
12
12
  from openpyxl.utils import get_column_letter
13
13
  from openpyxl.worksheet.datavalidation import DataValidation
14
14
  from openpyxl.worksheet.dimensions import DimensionHolder, ColumnDimension
@@ -176,7 +176,7 @@ class SubsetTemplateCreator:
176
176
  for sheet in workbook:
177
177
  dim_holder = DimensionHolder(worksheet=sheet)
178
178
  for col in range(sheet.min_column, sheet.max_column + 1):
179
- dim_holder[get_column_letter(col)] = ColumnDimension(sheet, min=col, max=col, width=20)
179
+ dim_holder[get_column_letter(col)] = ColumnDimension(sheet, min=col, max=col, width=25)
180
180
  sheet.column_dimensions = dim_holder
181
181
 
182
182
  @classmethod
@@ -201,10 +201,12 @@ class SubsetTemplateCreator:
201
201
  dotnotation_attribute = dotnotation_module.get_attribute_by_dotnotation(single_attribute,
202
202
  cell.value)
203
203
  value = dotnotation_attribute.definition
204
-
205
204
  sheet.cell(row=1, column=cell.column, value=value)
206
- sheet.cell(row=1, column=cell.column).fill = PatternFill(start_color="808080", end_color="808080",
207
- fill_type="solid")
205
+
206
+ for row in sheet.iter_rows(min_row=1, max_row=1, min_col=1):
207
+ for cell in row:
208
+ cell.alignment = Alignment(wrapText=True, vertical='top')
209
+ cell.fill = PatternFill(start_color="808080", end_color="808080", fill_type="solid")
208
210
 
209
211
  @classmethod
210
212
  def check_for_deprecated_attributes(cls, workbook, instantiated_attributes: list):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: otlmow_template
3
- Version: 0.8
3
+ Version: 0.9
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 = "0.8"
7
+ version = "0.9"
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