On Thu, 22 Jan 2015, Tobias Beer wrote:
> might not even be needed if TiddlyWiki itself does the cross referencing
> when talking to a number of TiddlyWeb servers
Yes, exactly the point I was trending towards.
> one question is, at what point would a TiddlyWeb
> go talk to remote bags if not through user interaction?
In the current implementation it is only through a user agent
(generally prompted by some kind of click) leading to a request for
a tiddler in a remote bag. That could indeed be driving by polling,
events, or anything else, as you say.
But again, I think doing in TW5 would be more flexible and powerful.
> There are two ways to approach this...
>
> 1. have TiddlyWeb do the *remotebag* talky-talky
Fun for interesting tricks[1] but not ideal.
> 2. have TiddlyWiki talk to a number of TiddlyWeb instances
> and cross reference the tiddlers in some way,
> e.g. via fields that read like...
> - *reply-to*:
http://unique.com#origin
> - *reply-to*:
Yes, something like that.
>> It doesn't strictly have to be file-based even.
(What I'm meaning here is that you can do the fun with TW5 when the
wiki is loaded from file: or http:, not file-based as in data being
stored in files.)
> Yes, I take it that there are db adaptors for TiddlyWeb.
> So, storing tiddlers in bags and defining recipes does not require a purely
> file-based storage.
> TiddlyWeb decides on how to pull the tiddlers and from where,
> so all you need is to properly address the api, the rest is under the hood.
Yes.
> I really think the syncer module(s) should allow multiple instances talking
> to distinctly configured stores... with appropriate conflict handling, i.e.
> store that content in some unique namespace where it doesn't conflict with
> the "locally owned" tiddlers, e.g.
That makes sense.
> The above would eventually hold a tiddler name at the very end. Some filter
> could extract all remote tiddlers that have the same name as a local one
> and appropriately show a conditional button in the toolbar which opens a
> popup containing a list of remote tiddlers ...when opened, a custom
> ViewTemplate shows this tiddler, but without all the $:/remote/foo...
> rather showing a clean Tiddler ui that hides the ugly title and clearly
> indicates that this tiddler came from someplace else, while pointing there.
This too.
> Anyhow, ownership seems to be the key in what needs configuration within
> TiddlyWiki, i.e.
>
> - "Am I the owner of the content from a given remote server configuration
> ?"
> - *yes*: ok, I can fully CRUD — so long as the server allows me to
> - *no*: I can only read and duplicate into whatever is my own local
> store
If you have a look at the JSON representation for a tiddler produced
by TiddlyWeb it has a permissions attribute that says what the
current user can do to the current tiddler. See:
http://tiddlyweb.tiddlyspace.com/HomePage.json
for an example. For me it says:
"permissions": ["read", "write", "create", "delete"]
That's there pretty much for the reasons you're describing.
[1] "remotebag" is a subclass of a concept in TiddlyWeb called
"specialbag" which was created to allow pretty much anything to be
transformed into tiddler in a bag. It provides the interface that
allow some thing to be presented as a list of tiddlers, and some
(other) thing within that thing to be presented as a single tiddler.
Examples included atom feeds, tweets, text files on disk, etc.
--
Chris Dent
http://burningchrome.com/
[...]