From 438bff833c91e1bbb502d43b76a8246f24c43b94 Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Wed, 10 Nov 2021 10:28:42 -0500 Subject: [PATCH] Improving importation from config. --- repository/TiddlyWiki/Tiddler.class.st | 4 +++- repository/TiddlyWiki/TiddlyWiki.class.st | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/repository/TiddlyWiki/Tiddler.class.st b/repository/TiddlyWiki/Tiddler.class.st index 5f5dd77..2bbdd36 100644 --- a/repository/TiddlyWiki/Tiddler.class.st +++ b/repository/TiddlyWiki/Tiddler.class.st @@ -232,7 +232,9 @@ Tiddler >> list: anObject [ { #category : #accessing } Tiddler >> listedTiddlers [ "I export all tiddlers in the list field as an alphabetic collection. - Future versions should preserve the order in the list." + Future versions should preserve the order in the list. + Notice that while '#list' only gives the titles of the listed tiddlers, + I return them as proper tiddler objects." | remainList remainListArray listedTiddlers | self list ifNil: [^ nil ]. remainList := self list copy. diff --git a/repository/TiddlyWiki/TiddlyWiki.class.st b/repository/TiddlyWiki/TiddlyWiki.class.st index 6ed8b19..79170e4 100644 --- a/repository/TiddlyWiki/TiddlyWiki.class.st +++ b/repository/TiddlyWiki/TiddlyWiki.class.st @@ -121,7 +121,7 @@ TiddlyWiki >> jsonSubtiddlers: subtiddlersCollection [ { #category : #accessing } TiddlyWiki >> loadFromConfig: wikiname [ - ^ self configDictonary at: wikiname. + ^ (self configDictonary at: wikiname) importJSONFile. ]