We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae763e6 commit 85c4435Copy full SHA for 85c4435
odml/doc.py
@@ -122,6 +122,20 @@ def parent(self):
122
""" The parent of a document is always None. """
123
return None
124
125
+ @property
126
+ def origin_file_name(self):
127
+ """
128
+ If available, the file name from where the document has been loaded.
129
+ Will not be serialized to file when saving the document.
130
131
+ return self._origin_file_name
132
+
133
+ @origin_file_name.setter
134
+ def origin_file_name(self, new_value):
135
+ if not new_value:
136
+ new_value = None
137
+ self._origin_file_name = new_value
138
139
def finalize(self):
140
"""
141
This needs to be called after the document is set up from parsing
0 commit comments