Skip to content

Commit db5aeda

Browse files
committed
[doc] Add origin_file_name attribute
1 parent d413e5b commit db5aeda

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

odml/doc.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ def __init__(self, author=None, date=None, version=None, repository=None, oid=No
3737
self._date = None
3838
self.date = date
3939

40+
# Enable setting of the file name from whence this document came.
41+
# It is for knowing while processing and will not be serialized to a file.
42+
self._origin_file_name = None
43+
4044
def __repr__(self):
4145
return "<Doc %s by %s (%d sections)>" % (self._version, self._author,
4246
len(self._sections))

0 commit comments

Comments
 (0)