Skip to content

Commit

Permalink
wip: dummy out import of document properties for now
Browse files Browse the repository at this point in the history
  • Loading branch information
robtaylor committed Oct 25, 2024
1 parent a56bf05 commit 38e5f6d
Show file tree
Hide file tree
Showing 26 changed files with 31 additions and 7 deletions.
12 changes: 8 additions & 4 deletions doorstop/core/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,15 @@ def _file_xlsx(path, document, mapping=None, tree=None, **_):
tree = _get_tree()
documents = []
for worksheet in workbook.worksheets:
log.info(f"sheet {worksheet.title}...")
if worksheet.title == "Document Properties":
#TODO
continue
log.info(f"checking sheet {worksheet.title}...")
document = _check_doc(tree, worksheet, workbook)
log.debug(f"importing into {document.prefix} {document.path}")
_load_xlsx(document, worksheet, mapping)
documents.append(document)
if document:
log.debug(f"importing into {document.prefix} {document.path}")
_load_xlsx(document, worksheet, mapping)
documents.append(document)
return documents

def _itemize(header, data, document, mapping=None):
Expand Down
1 change: 0 additions & 1 deletion reqs/ext/EXT001.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ normative: true
ref: ''
references:
- path: reqs/ext/test.file
sha: 24d9b35c727e6c78676c2ad378a8c3c47cfb539f3583d3cd9e1eafee51d5679d
type: file
reviewed: n0xxAj0z-SqNcebKEu8p9HDE8jAs5I8Vz4kX-5ZieA4=
text: |
Expand Down
1 change: 0 additions & 1 deletion reqs/ext/EXT002.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ normative: true
ref: ''
references:
- path: reqs/ext/test-modified.file
sha: 49ca5d81054fdd20572294b9350b605d05e0df91da09a46fb8bde7fd6c1c172d
type: file
reviewed: arLWz1tqET94t2j7FG0ncvKpwGe5twDi-jPbBnikxho=
text: |
Expand Down
1 change: 1 addition & 0 deletions reqs/tutorial/TUT001.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
active: true
custom-attrib: null
derived: false
header: ''
level: 1.1
Expand Down
1 change: 1 addition & 0 deletions reqs/tutorial/TUT002.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
active: true
custom-attrib: null
derived: false
header: ''
level: 1.2
Expand Down
1 change: 1 addition & 0 deletions reqs/tutorial/TUT003.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
active: true
custom-attrib: null
derived: false
header: ''
level: 1
Expand Down
1 change: 1 addition & 0 deletions reqs/tutorial/TUT004.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
active: true
custom-attrib: null
derived: false
header: ''
level: 1.3
Expand Down
1 change: 1 addition & 0 deletions reqs/tutorial/TUT005.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
active: true
custom-attrib: null
derived: false
header: ''
level: 2.0
Expand Down
1 change: 1 addition & 0 deletions reqs/tutorial/TUT008.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
active: true
custom-attrib: null
derived: false
header: ''
level: 1.4
Expand Down
1 change: 1 addition & 0 deletions reqs/tutorial/TUT009.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
active: true
custom-attrib: null
derived: false
header: ''
level: 2.1
Expand Down
1 change: 1 addition & 0 deletions reqs/tutorial/TUT010.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
active: true
custom-attrib: null
derived: false
header: ''
level: 2.2
Expand Down
1 change: 1 addition & 0 deletions reqs/tutorial/TUT011.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
active: true
custom-attrib: null
derived: false
header: ''
level: 3.0
Expand Down
1 change: 1 addition & 0 deletions reqs/tutorial/TUT012.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
active: true
custom-attrib: null
derived: false
header: ''
level: 3.2
Expand Down
1 change: 1 addition & 0 deletions reqs/tutorial/TUT013.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
active: true
custom-attrib: null
derived: false
header: ''
level: 3.3
Expand Down
1 change: 1 addition & 0 deletions reqs/tutorial/TUT014.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
active: true
custom-attrib: null
derived: false
header: ''
level: 4.0
Expand Down
1 change: 1 addition & 0 deletions reqs/tutorial/TUT015.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
active: true
custom-attrib: null
derived: false
header: ''
level: 4.1
Expand Down
1 change: 1 addition & 0 deletions reqs/tutorial/TUT016.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
active: true
custom-attrib: null
derived: false
header: ''
level: 3.1
Expand Down
1 change: 1 addition & 0 deletions reqs/tutorial/TUT017.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
active: true
custom-attrib: null
derived: false
header: |
Lot's of different little examples in a single heading which is very long
Expand Down
1 change: 1 addition & 0 deletions reqs/tutorial/TUT018.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
active: true
custom-attrib: null
derived: false
header: ''
level: 1.6.0
Expand Down
1 change: 1 addition & 0 deletions reqs/tutorial/TUT019.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
active: true
custom-attrib: null
derived: false
header: ''
level: 1.6.1
Expand Down
2 changes: 1 addition & 1 deletion reqs/tutorial/TUT020.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CUSTOM-ATTRIB: true
active: true
custom-attrib: true
derived: false
header: ''
level: 2.3
Expand Down
1 change: 1 addition & 0 deletions reqs/tutorial/TUT021.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
active: true
custom-attrib: null
derived: false
header: ''
level: 5.0
Expand Down
1 change: 1 addition & 0 deletions reqs/tutorial/TUT022.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
active: true
custom-attrib: null
derived: false
header: |
Lists
Expand Down
1 change: 1 addition & 0 deletions reqs/tutorial/TUT023.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
active: true
custom-attrib: null
derived: false
header: |
Nested list
Expand Down
1 change: 1 addition & 0 deletions reqs/tutorial/TUT024.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
active: true
custom-attrib: null
derived: false
header: |
Ordered list with empty items
Expand Down
1 change: 1 addition & 0 deletions reqs/tutorial/TUT025.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
active: true
custom-attrib: null
derived: false
header: |
Another list example
Expand Down

0 comments on commit 38e5f6d

Please sign in to comment.