From f3929ceece3130b9c8a26c786a29c670007ea4fd Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Wed, 21 Aug 2024 11:02:21 -0500 Subject: [PATCH] Improving importation code. --- src/MiniDocs/LePage.extension.st | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/MiniDocs/LePage.extension.st b/src/MiniDocs/LePage.extension.st index 14ea70d..0703592 100644 --- a/src/MiniDocs/LePage.extension.st +++ b/src/MiniDocs/LePage.extension.st @@ -129,6 +129,21 @@ LePage >> exportedFileName [ ^ sanitized , '--' , (self uidString copyFrom: 1 to: 5) ] +{ #category : #'*MiniDocs' } +LePage >> fromDictionary: aDictionary [ + self + title: (aDictionary at: 'title'); + basicUid: (UUID fromString36: (aDictionary at: 'id')); + createTime: (LeTime new + time: (aDictionary at: 'created') asDateAndTime); + editTime: (LeTime new + time: (aDictionary at: 'modified') asDateAndTime); + latestEditTime: (LeTime new + time: (aDictionary at: 'modified') asDateAndTime); + createEmail: (aDictionary at: 'creator'); + editEmail: (aDictionary at: 'modifier'). +] + { #category : #'*MiniDocs' } LePage >> fromMarkdeepUrl: aString [ | docTree pageMetadata |