Hi, can you please post your hack/code?
I am reallly excited to see it! Daniel On Sunday, January 25, 2015 at 10:54:09 PM UTC+1, Abilio Marques wrote: > > Hi, > > As a long time user of tiddlywiki, I adapted the classic version into a > server version using sqlite and nodejs a couple of years ago. I never > published the code as I think it was more of a hack than real software. > After tiddlywiki5 was published, I found that it already has a server > running in nodejs. Now I want to add the sqlite storage as an alternative > to plain text files. > > Been trying to create a syncadaptor plugin for sqlite. Read these before I > started: > > http://tiddlywiki.com/dev/#Syncadaptor > http://tiddlywiki.com/dev/#SyncAdaptorModules > > It made me believe that it was possible. > > Then, as a quick test, I went into the directory called, > tiddlywiki/plugins and copied the filesystem directory into a new one > called sqlite. Refactored the entire code to replace "filesystem" by > "sqlite". > > Created a test wiki with the --init server parameter, then modified the > plugins list inside tiddlywiki.info accordingly (replaced filesystem with > sqlite). > > Tested it and still ran... Then tried a few console logs, and it printed > text when saving or deleting a tiddler, but... loadTiddler didn't run. I > was suspicious from the start, as it runs a dummy callback and the comments > read: > > We don't need to implement loading for the file system adaptor, because >> all the tiddler files will have been loaded during the boot process >> > > > Tried to find where, and I must say I got lost in the code... Would anyone > please point me in the right direction on how to make the plugin be the > responsible for loading all the tiddlers? (in other words, allow > loadTiddler to run) > > This time, I want to release my code, so I don't want to solve it in a > "replace this code in the core" fashion. > > > Thanks in advance, > Abilio > -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywikidev. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/a70a4b55-e380-4373-8fb7-8699c28e47a1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
