Skip to content
Snippets Groups Projects
Commit c6fc8880 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

file

parent 6b3289d9
No related branches found
No related tags found
4 merge requests!100WIP: Filling XLSX: Seems to be working.,!94ENH: add framework for converting json schema into table templates,!93Filling XLSX: Everything except multiple choice.,!92ENH: xlsx template generator
Pipeline #47995 failed
File deleted
......@@ -25,6 +25,8 @@ Training:
datatype: INTEGER
remote:
datatype: BOOLEAN
slides:
datatype: FILE
ProgrammingCourse:
inherit_from_suggested:
- Training
......
......@@ -53,28 +53,8 @@
"type": "string"
},
"Organisation": {
"oneOf": [
{
"title": "Existing entries",
"enum": [
"Federal Reserve"
]
},
{
"type": "object",
"required": [],
"additionalProperties": false,
"title": "Create new",
"properties": {
"name": {
"type": "string",
"description": "The name of the Record to be created"
},
"Country": {
"type": "string"
}
}
}
"enum": [
"Federal Reserve"
]
}
}
......@@ -97,28 +77,8 @@
"type": "string"
},
"Organisation": {
"oneOf": [
{
"title": "Existing entries",
"enum": [
"Federal Reserve"
]
},
{
"type": "object",
"required": [],
"additionalProperties": false,
"title": "Create new",
"properties": {
"name": {
"type": "string",
"description": "The name of the Record to be created"
},
"Country": {
"type": "string"
}
}
}
"enum": [
"Federal Reserve"
]
}
}
......@@ -152,28 +112,8 @@
"type": "string"
},
"Organisation": {
"oneOf": [
{
"title": "Existing entries",
"enum": [
"Federal Reserve"
]
},
{
"type": "object",
"required": [],
"additionalProperties": false,
"title": "Create new",
"properties": {
"name": {
"type": "string",
"description": "The name of the Record to be created"
},
"Country": {
"type": "string"
}
}
}
"enum": [
"Federal Reserve"
]
}
},
......
......@@ -189,14 +189,15 @@ def test_template_generator():
assert ws.row_dimensions[1].hidden is True
assert ws.column_dimensions['A'].hidden is True
# rp = '/home/henrik/CaosDB/management/external/dimr/eingabemaske/django/laforms/settings/DevelSchema.json'
# with open(rp) as sfi:
# schema = json.load(sfi)
# generator.generate(schema=schema,
# foreign_keys={},
# filepath=path)
# os.system(f'libreoffice {path}')
di = '/home/professional/CaosDB/management/external/dimr/eingabemaske/crawler/schemas'
for fi in os.listdir(di):
rp = os.path.join(di, fi)
with open(rp) as sfi:
schema = json.load(sfi)
generator.generate(schema=schema,
foreign_keys={},
filepath=path)
os.system(f'libreoffice {path}')
# TODO test colisions of sheet or colnames
# TODO test escaping of values
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment