On Thu, 10 Apr 2014, Jeremy Ruston wrote:
(Note the same semantics logic is why I think TW5 should consider being
more particular about tiddlers labeled as JSON.)
This is what I don't understand. What is it that TW5 is doing with JSON
that is wrong?
Not wrong, just semantically confusing. I'm not saying anything _has_
to change, just that the conversations that have led to the suggested
change in TiddlyWeb may be meaningful to TW5. They are, however, two
separate issues and can progress independently of one another.
TW5 allows tiddlers to have the type "application/json", and I still don't
see why that is wrong.
This is one issue. I'm not sure it is wrong but it might be
incomplete. A tiddler which contains JSON should say so in some
fashion, but there are different types of tiddlers which contain JSON.
Some of them are aggregates of tiddlers, a form that TW5 has awareness
of what to do with. Some of them are raw JSON of a form that TW5 doesn't
know what to do with. It (seems to me that it) would be better if that
decision making was controlled by the type field rather inspection of
the contents of the text field, or some other field (if, in fact, that
is what is going on).
TW5 uses "application/json" as the content type for PUTting modifications
to the server; at one point I thought that this discussion was suggesting
that the content-type for PUTting should be something else.
This is the other issue. I've conceded that the content-type for
PUTting and GETting should be something different.
But isn't the fact that we can't reliably GET a tiddler with all its fields
a symptom of a problem with the design of TiddlyWeb? Other data stores like
PouchDB don't appear to have any similar behaviour. I don't understand why
it is TW5's problem.
It's not. I've already agreed to change TiddlyWeb.
At my present rate of progress it's going to take me longer than that to
understand what's going on :)
I think we're trying to figure out what the type attribute means and
in what contexts.
--
Chris Dent http://burningchrome.com/
[...]
--
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 http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.