bcf-api-xml 0.4.16__py3-none-any.whl → 0.4.17__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.
bcf_api_xml/__init__.py
CHANGED
bcf_api_xml/export/excel.py
CHANGED
@@ -31,6 +31,7 @@ HEADER_TRANSLATIONS = {
|
|
31
31
|
"models": "Models",
|
32
32
|
"space": "Organisation",
|
33
33
|
"project": "Project",
|
34
|
+
"sheetname": "BCF list",
|
34
35
|
},
|
35
36
|
"fr": {
|
36
37
|
"index": "N°",
|
@@ -49,6 +50,7 @@ HEADER_TRANSLATIONS = {
|
|
49
50
|
"models": "Maquettes",
|
50
51
|
"space": "Organisation",
|
51
52
|
"project": "Project",
|
53
|
+
"sheetname": "Liste des BCF",
|
52
54
|
},
|
53
55
|
}
|
54
56
|
|
@@ -87,12 +89,14 @@ def to_xlsx(
|
|
87
89
|
comments: dict(topics_guid=[comment])
|
88
90
|
viewpoints: dict(topics_guid=[viewpoint])
|
89
91
|
"""
|
92
|
+
headers = HEADER_TRANSLATIONS[lang]
|
93
|
+
|
90
94
|
xls_file = io.BytesIO()
|
91
95
|
with xlsxwriter.Workbook(xls_file, options={"remove_timezone": True}) as workbook:
|
92
96
|
if sheetname:
|
93
97
|
worksheet = workbook.add_worksheet(sheetname)
|
94
98
|
else:
|
95
|
-
worksheet = workbook.add_worksheet()
|
99
|
+
worksheet = workbook.add_worksheet(headers["sheetname"])
|
96
100
|
|
97
101
|
# Set default height for tables
|
98
102
|
DEFAULT_CELL_HEIGHT = 220
|
@@ -136,8 +140,6 @@ def to_xlsx(
|
|
136
140
|
header_fmt2 = workbook.add_format({"border": 1})
|
137
141
|
base_fm_align = workbook.add_format({"align": "center", "valign": "top"})
|
138
142
|
|
139
|
-
headers = HEADER_TRANSLATIONS[lang]
|
140
|
-
|
141
143
|
# Company Logo followed by date, espace, space, models
|
142
144
|
row = 0
|
143
145
|
|
@@ -3,10 +3,10 @@ bcf_api_xml/Schemas/markup.xsd,sha256=FemvIgZYcNk61FQxFHdIrcWzLvgw1t_ntOsQz15sRE
|
|
3
3
|
bcf_api_xml/Schemas/project.xsd,sha256=obReOUyt8HYgnyLsnyIlA5ky9YClDNiYwUxMubHJ1dI,669
|
4
4
|
bcf_api_xml/Schemas/version.xsd,sha256=ux0QjjSUI_70pp7MFkh5fn5zoY7plLzfmPl4pqOt-Jk,449
|
5
5
|
bcf_api_xml/Schemas/visinfo.xsd,sha256=qxFodRHZWV_BNrzsV7T2QPDoNk2RP5tUyNwmehPG8kc,7212
|
6
|
-
bcf_api_xml/__init__.py,sha256=
|
6
|
+
bcf_api_xml/__init__.py,sha256=eSOrTXYWELHFo_sculdlR6BYqWLeiDe9N4j9jhG2qRs,309
|
7
7
|
bcf_api_xml/errors.py,sha256=krwA-Ib5R4LeeU2xzeMQ6rKXvRB-08ReQmihk8FqPsM,89
|
8
8
|
bcf_api_xml/export/__init__.py,sha256=5jooo9c6rlALNthrCwAw8UTcx5Rir8ASyen1voo6ZRA,178
|
9
|
-
bcf_api_xml/export/excel.py,sha256=
|
9
|
+
bcf_api_xml/export/excel.py,sha256=eqO1GKBfMYTPtaROzICgFiUSgDHkfIlLDIhtFY6CcZU,12682
|
10
10
|
bcf_api_xml/export/zip.py,sha256=HCSx5mx-scAlAA49WKiVV7Y7ABmT2mhUkdXyL4U2lHE,3322
|
11
11
|
bcf_api_xml/import_zip.py,sha256=cLk5XK68My_mQDspVfl9LLS6DzLhBlh4Q9bgRaeqnSA,3107
|
12
12
|
bcf_api_xml/models/ClippingPlane.py,sha256=sIcst3nGcaIHNl_qcXNjdSGFw3gufmh2VpOZtyo-oNE,410
|
@@ -23,6 +23,6 @@ bcf_api_xml/models/Visibility.py,sha256=8adXfJpceynK6W0in9C5EBEU6v6FKLcJdXG7NM3v
|
|
23
23
|
bcf_api_xml/models/VisualizationInfo.py,sha256=eaq7HWJF5zMGCZunf46QZDNY7_dwVJgTLWFBDq5ElBQ,4084
|
24
24
|
bcf_api_xml/models/XYZ.py,sha256=DZb8MBdQtbEWK62gXT8XqvdszHO9JWsUFiVX4FCkHnM,316
|
25
25
|
bcf_api_xml/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
26
|
-
bcf_api_xml-0.4.
|
27
|
-
bcf_api_xml-0.4.
|
28
|
-
bcf_api_xml-0.4.
|
26
|
+
bcf_api_xml-0.4.17.dist-info/METADATA,sha256=G-a4GEKEGbRYkMFDzW0ZCRDL-FJSTQPAXPa-pKTNqUQ,1517
|
27
|
+
bcf_api_xml-0.4.17.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
28
|
+
bcf_api_xml-0.4.17.dist-info/RECORD,,
|
File without changes
|