aboutsummaryrefslogtreecommitdiff
path: root/mammoth/documents.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-01-25 17:06:54 +0000
committerMichael Williamson <mike@zwobble.org>2015-01-25 17:06:54 +0000
commit1483a864719cedabc0d6c6bcd98e0b2d9d3ce0c1 (patch)
tree8f5db7dde7d0f1952890f5ba97af7c958c212d13 /mammoth/documents.py
parentabdcd67365d663c878fd370cb97e77ce74c2b1a7 (diff)
Use prefix to generate IDs
Diffstat (limited to 'mammoth/documents.py')
-rw-r--r--mammoth/documents.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mammoth/documents.py b/mammoth/documents.py
index 9effce8..1adcc0d 100644
--- a/mammoth/documents.py
+++ b/mammoth/documents.py
@@ -67,7 +67,7 @@ def numbering_level(level_index, is_ordered):
_NumberingLevel = dodge.data_class("NumberingLevel", ["level_index", "is_ordered"])
-note = Note = dodge.data_class("Note", ["note_type", "id", "body"])
+note = Note = dodge.data_class("Note", ["note_type", "note_id", "body"])
class Notes(object):
@@ -93,6 +93,6 @@ def notes(notes_list):
))
def _note_key(note):
- return (note.note_type, note.id)
+ return (note.note_type, note.note_id)
note_reference = NoteReference = dodge.data_class("NoteReference", ["note_type", "note_id"])