otlmow-template 0.7__py3-none-any.whl → 0.9__py3-none-any.whl
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/SubsetTemplateCreator.py +12 -5
- {otlmow_template-0.7.dist-info → otlmow_template-0.9.dist-info}/METADATA +2 -2
- {otlmow_template-0.7.dist-info → otlmow_template-0.9.dist-info}/RECORD +6 -6
- {otlmow_template-0.7.dist-info → otlmow_template-0.9.dist-info}/LICENSE +0 -0
- {otlmow_template-0.7.dist-info → otlmow_template-0.9.dist-info}/WHEEL +0 -0
- {otlmow_template-0.7.dist-info → otlmow_template-0.9.dist-info}/top_level.txt +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
|
|
@@ -95,6 +95,11 @@ class SubsetTemplateCreator:
|
|
|
95
95
|
for attribute_object in attributen:
|
|
96
96
|
attr = getattr(instance, '_' + attribute_object.name)
|
|
97
97
|
attr.fill_with_dummy_data()
|
|
98
|
+
try:
|
|
99
|
+
geo_attr = getattr(instance, '_geometry')
|
|
100
|
+
geo_attr.fill_with_dummy_data()
|
|
101
|
+
except AttributeError:
|
|
102
|
+
pass
|
|
98
103
|
otl_objects.append(instance)
|
|
99
104
|
|
|
100
105
|
DotnotationHelper.clear_list_of_list_attributes(instance)
|
|
@@ -171,7 +176,7 @@ class SubsetTemplateCreator:
|
|
|
171
176
|
for sheet in workbook:
|
|
172
177
|
dim_holder = DimensionHolder(worksheet=sheet)
|
|
173
178
|
for col in range(sheet.min_column, sheet.max_column + 1):
|
|
174
|
-
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)
|
|
175
180
|
sheet.column_dimensions = dim_holder
|
|
176
181
|
|
|
177
182
|
@classmethod
|
|
@@ -196,10 +201,12 @@ class SubsetTemplateCreator:
|
|
|
196
201
|
dotnotation_attribute = dotnotation_module.get_attribute_by_dotnotation(single_attribute,
|
|
197
202
|
cell.value)
|
|
198
203
|
value = dotnotation_attribute.definition
|
|
199
|
-
|
|
200
204
|
sheet.cell(row=1, column=cell.column, value=value)
|
|
201
|
-
|
|
202
|
-
|
|
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")
|
|
203
210
|
|
|
204
211
|
@classmethod
|
|
205
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.
|
|
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
|
|
@@ -697,7 +697,7 @@ Classifier: Topic :: Software Development :: Quality Assurance
|
|
|
697
697
|
Requires-Python: >=3.9
|
|
698
698
|
Description-Content-Type: text/markdown
|
|
699
699
|
License-File: LICENSE
|
|
700
|
-
Requires-Dist: otlmow-converter>=1.
|
|
700
|
+
Requires-Dist: otlmow-converter>=1.7
|
|
701
701
|
Requires-Dist: otlmow-modelbuilder>=0.24
|
|
702
702
|
|
|
703
703
|
# OTLMOW-Template
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
otlmow_template/CsvTemplateCreator.py,sha256=PQq2zGmliWk0N9bhYNB7ZEa8PWV16OTbvoHh3--qCMs,7538
|
|
2
2
|
otlmow_template/ExcelTemplateCreator.py,sha256=wW-7Uq2Gzr1vHYMO1I7TtqZSBTVFFSWotHvjwzCelV4,10853
|
|
3
|
-
otlmow_template/SubsetTemplateCreator.py,sha256=
|
|
3
|
+
otlmow_template/SubsetTemplateCreator.py,sha256=xnK3GvAZ9cH7r3Y0WUU8MeObLStfHAK3Ok8EtDQsInE,25175
|
|
4
4
|
otlmow_template/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
otlmow_template/Exceptions/MissingTypeUriException.py,sha256=DSKwywmP9Bq8n7rzBoDcEPlxvC1IChx18QIHFUCTtdA,51
|
|
6
|
-
otlmow_template-0.
|
|
7
|
-
otlmow_template-0.
|
|
8
|
-
otlmow_template-0.
|
|
9
|
-
otlmow_template-0.
|
|
10
|
-
otlmow_template-0.
|
|
6
|
+
otlmow_template-0.9.dist-info/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
|
|
7
|
+
otlmow_template-0.9.dist-info/METADATA,sha256=xQIicV7RoS8gicXkXu3YBz0NkI678uM1DrTePhvsjHk,43999
|
|
8
|
+
otlmow_template-0.9.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
9
|
+
otlmow_template-0.9.dist-info/top_level.txt,sha256=zPgBoaTLG-avoOLySlwOUEtHaFyA5Vc5wJqkSeX1l6A,16
|
|
10
|
+
otlmow_template-0.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|