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.
- {otlmow_template-0.8 → otlmow_template-0.9}/PKG-INFO +1 -1
- {otlmow_template-0.8 → otlmow_template-0.9}/otlmow_template/SubsetTemplateCreator.py +7 -5
- {otlmow_template-0.8 → otlmow_template-0.9}/otlmow_template.egg-info/PKG-INFO +1 -1
- {otlmow_template-0.8 → otlmow_template-0.9}/pyproject.toml +1 -1
- {otlmow_template-0.8 → otlmow_template-0.9}/LICENSE +0 -0
- {otlmow_template-0.8 → otlmow_template-0.9}/README.md +0 -0
- {otlmow_template-0.8 → otlmow_template-0.9}/otlmow_template/CsvTemplateCreator.py +0 -0
- {otlmow_template-0.8 → otlmow_template-0.9}/otlmow_template/ExcelTemplateCreator.py +0 -0
- {otlmow_template-0.8 → otlmow_template-0.9}/otlmow_template/Exceptions/MissingTypeUriException.py +0 -0
- {otlmow_template-0.8 → otlmow_template-0.9}/otlmow_template/__init__.py +0 -0
- {otlmow_template-0.8 → otlmow_template-0.9}/otlmow_template.egg-info/SOURCES.txt +0 -0
- {otlmow_template-0.8 → otlmow_template-0.9}/otlmow_template.egg-info/dependency_links.txt +0 -0
- {otlmow_template-0.8 → otlmow_template-0.9}/otlmow_template.egg-info/requires.txt +0 -0
- {otlmow_template-0.8 → otlmow_template-0.9}/otlmow_template.egg-info/top_level.txt +0 -0
- {otlmow_template-0.8 → otlmow_template-0.9}/setup.cfg +0 -0
|
@@ -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=
|
|
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
|
-
|
|
207
|
-
|
|
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):
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "otlmow_template"
|
|
7
|
-
version = "0.
|
|
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
|
|
File without changes
|
{otlmow_template-0.8 → otlmow_template-0.9}/otlmow_template/Exceptions/MissingTypeUriException.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|