Martin and I are working on a TiddlyWeb store to simplify TiddlyWiki 
plugin development in conjunction with TiddlyWeb.[1]

While we're making good progress, it might be useful to have a generic 
overview of the StorageInterface's various entry points.

As far as I can tell, this is what a store needs:
* get list of items (bags/recipes/users or tiddlers/revisions)
* put/get/delete item (bag/recipe/user or tiddler[2]/revision)
* search (optional?)

As I understand it, the respective store implementation needs methods 
named according to the established convention - namely:
* list_<item>
* <item>_<put|get|delete>

Is this correct? Anything I'm missing?

It seems fairly straightforward when summarized like this.
However, the text store implementation seems much more complex at first 
glance. Perhaps that's because there's a separate (though almost 
identical) bunch of methods for each of the items mentioned above?
How about refactoring that interface to use something like list(type) 
and <put|get|delete>(mode, type), with the respective type-specific 
functionality delegated to private methods (if required)?


-- F.


[1] http://tinyurl.com/agbl2g 
(http://svn.tiddlywiki.org/Trunk/contributors/FND/TiddlyWeb/plugins/devtext.py)
[2] in this context, a tiddler would be an entire tiddler chronicle

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWikiDev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to