Improving importation from config.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2021-11-10 10:28:42 -05:00
parent 745a7e028e
commit 438bff833c
2 changed files with 4 additions and 2 deletions

View File

@ -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.

View File

@ -121,7 +121,7 @@ TiddlyWiki >> jsonSubtiddlers: subtiddlersCollection [
{ #category : #accessing }
TiddlyWiki >> loadFromConfig: wikiname [
^ self configDictonary at: wikiname.
^ (self configDictonary at: wikiname) importJSONFile.
]