[TW5] Deleting tiddlers when using node.js and lazy-all

40 views
Skip to first unread message

Walter Moreira

unread,
May 11, 2017, 3:09:32 PM5/11/17
to TiddlyWiki
Hi folks. First time user of the Tiddlywiki5 (used classic TW long time ago for a short time, close to the beginning).

I'm trying to setup TW5 for a small number of people, using the node.js instructions (under Ubuntu 16.04, using Docker/docker-compose). It works flawlessly when using the following command to run the server:

tiddlywiki wiki --server 8080 $:/core/save/all text/plain text/html "$USER" "$PASSWORD" 0.0.0.0 /wiki

But when using /lazy-all, instead of /all, I noticed that deleting a tiddler doesn't really delete it. After a few seconds, or after refreshing the page, the tiddler is back.

My experience with javascript is very limited, but I wanted to help a bit with tracing to give you more meaningful information. I found when using $:/core/save/all, the parameter 'options' to the function:

plugins/tiddlywiki/tiddlyweb/tiddlywebadaptor.js: TiddlyWebAdaptor.prototype.deleteTiddler(title,callback,options)

includes an attribute 'tiddlerInfo.adaptorInfo.bag'. When using lazy-all, it doesn't. The function decides not to do any work if there is no such attribute. Could this be the problem?

I may of course may be missing something more obvious from the docs. I appreciate any help.
Thanks for this wonderful piece of software!

Walter
Reply all
Reply to author
Forward
0 new messages