Improving required folders detection for exporting visualizations.
This commit is contained in:
parent
fb00701e9e
commit
d4432bae7a
@ -1,6 +1,6 @@
|
|||||||
accessing
|
accessing
|
||||||
exportDefaultReport
|
exportDefaultReport
|
||||||
|
|
||||||
self hasTemplates
|
(self hasFolder: 'templates')
|
||||||
ifFalse: [ self installTemplate ].
|
ifFalse: [ self installTemplate ].
|
||||||
^ self exportWithTemplate: (TweetsCollection dataStore / 'templates' / 'template.mus.tex') into: self folder
|
^ self exportWithTemplate: (TweetsCollection dataStore / 'templates' / 'template.mus.tex') into: self folder
|
@ -1,6 +1,8 @@
|
|||||||
accessing
|
accessing
|
||||||
exportStaticWebReport
|
exportStaticWebReport
|
||||||
|
|
||||||
self hasTemplates
|
(self hasFolder: 'commons')
|
||||||
|
ifFalse: [ self installCommons ].
|
||||||
|
(self hasFolder: 'templates')
|
||||||
ifFalse: [ self installTemplate ].
|
ifFalse: [ self installTemplate ].
|
||||||
^ self exportWithTemplate: (TweetsCollection dataStore / 'templates' / 'index.mus.html') into: self folder
|
^ self exportWithTemplate: (TweetsCollection dataStore / 'templates' / 'index.mus.html') into: self folder
|
@ -0,0 +1,6 @@
|
|||||||
|
accessing
|
||||||
|
hasFolder: folderName
|
||||||
|
|
||||||
|
| fullFolderPath |
|
||||||
|
fullFolderPath :=(TweetsCollection dataStore / folderName ).
|
||||||
|
^ fullFolderPath exists and: [ fullFolderPath children isNotEmpty ]
|
@ -1,6 +0,0 @@
|
|||||||
accessing
|
|
||||||
hasTemplates
|
|
||||||
|
|
||||||
| templatesFolder |
|
|
||||||
templatesFolder :=(TweetsCollection dataStore / 'templates' ).
|
|
||||||
^ templatesFolder exists and: [ templatesFolder children isNotEmpty ]
|
|
Loading…
Reference in New Issue
Block a user