So you're suggesting that, just as a "system" bag is created initially,
there should be a second bag for content by default?
While it's a good idea for basic setups, we anticipate more elaborate
systems with several content bags.
However, come to think of it, such systems could still be customized
accordingly - no harder than if there were no default content bag.
Chris, what's your take on this?
> Handling the saving a new tiddlers is still not quite as well resolved
> as I would like it to be.
There are two ways to approach this:
a) set config.defaultCustomFields with a simple plugin (tiddler tagged
with "systemConfig"):
//{{{
config.defaultCustomFields = {
"server.host": "127.0.0.1",
"server.bag": "content"
};
//}}}
b) make the NewTiddler button (in the sidebar's SideBarOptions shadow
tiddler by default) set these fields:
<<newTiddler
fields:"'server.host':'127.0.0.1' 'server.bag':'content'"
>>
(cf. http://www.tiddlywiki.org/wiki/NewTiddler_(macro) )
The second solution gives you more flexibility to put content into
different bags as appropriate - e.g. you could provide multiple buttons
(e.g. "new journal", "new report" etc.).
Also see the notes here:
http://trac.tiddlywiki.org/ticket/755#comment:6
> maybe there is a way to filter out non-plugin tiddlers for new recipes
> which need the system bag plugins
I'm not sure I understand this - but I believe Chris has addressed it
already, so I probably don't need to worry about it.
-- F.
That's huge, Chris!
How did you manage that - is there a lot of bureaucracy involved?
FWIW, these are the PyPI pages:
http://pypi.python.org/pypi/tiddlyweb/0.8
http://pypi.python.org/pypi/tiddlyweb-plugins/0.1
-- F.
I'm currently working on a TiddlyWiki plugin to improve the saving
mechanism. It's largely feature-complete, but hasn't been extensively
tested yet:
http://tinyurl.com/58g3fo
(http://svn.tiddlywiki.org/Trunk/association/plugins/ServerSideSavingPlugin.js)
Feel free to give it a try (replaces TiddlyWebAutoSavingPlugin); I'd
love to get some feedback...
> updates to a bag are not reflected in the recipe unless the recipe
> is rebuilt
I don't quite understand - do you mean simultaneous editing (whether in
separate tabs/windows or on multiple machines), with the changes not
being pushed to the client?
As for the remaining issues, I'll talk to Chris after Thanksgiving.
Again, many thanks for your great feedback!
-- F.
I forgot a small, but important detail: The ServerSideSavingPlugin is a
generic plugin - so you need to tell it to use the TiddlyWeb adaptor first.
Create a tiddler, e.g. [[ConfigTweaks]], tag it with "systemConfig" and
add the following contents:
//{{{
config.extensions.ServerSideSavingPlugin.adaptor = config.adaptors.tiddlyweb
//}}}
> As for the remaining issues, I'll talk to Chris after Thanksgiving.
We've agreed that your suggestion of adding a default content bag is
sensible, so "twanager instance" will now create two bags ("system" and
"common"), as well as a "default" recipe.
http://trac.tiddlywiki.org/changeset/8014
We currently don't have a plugin to set the default custom fields to
match that default content bag - however, you can extend the above
ConfigTweaks plugin to do so:
//{{{
config.defaultCustomFields = {
"server.type": "tiddlyweb",
"server.host": "127.0.0.1", // just an example
"server.bag": "common"
};
//}}}
-- F.