Improving page metadata management.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2022-03-11 11:16:51 -05:00
parent 3b4a7435c2
commit da8eaeb9a6

View File

@ -20,6 +20,7 @@ LeTextSnippet >> metadataInit [
^ OrderedDictionary new
at: 'id' put: self uidString;
at: 'parent' put: self parentId;
at: 'created' put: self createTime asString;
at: 'modified' put: self latestEditTime asString;
at: 'creator' put: self createEmail asString;
@ -31,3 +32,9 @@ LeTextSnippet >> metadataInit [
LeTextSnippet >> options [
^ options
]
{ #category : #'*Grafoscopio-Utils-Core' }
LeTextSnippet >> parentId [
self parent ifNil: [ ^ self ].
^ self parent uidString.
]