new tiddlyweb 2.4.0 (still ticking over)

98 views
Skip to first unread message

chris...@gmail.com

unread,
Nov 9, 2014, 2:04:14 PM11/9/14
to tidd...@googlegroups.com


TiddlyWeb is mostly stable now, but every now and again someone finds
a bug or missing feature. The latest is that TiddlyWiki 5's special
media type for what it calls a "tiddler dictionary" was no being
handled appropriately. Because of this the data in the dictionaries
would be corrupted when the data was saved from TiddlyWiki 5 to
TiddlyWeb. The new version fixes this.

Find it at: https://pypi.python.org/pypi/tiddlyweb

Also: just a general hello to say the code is still being watched over
and used. Here or GitHub issues are the places to report problems or
ask questions.

--
Chris Dent http://burningchrome.com/
[...]

Andrew Back

unread,
Nov 11, 2014, 9:47:55 AM11/11/14
to tidd...@googlegroups.com
Hi Chris,

I installed TiddlyWeb on Sunday and you'll be pleased to hear that I have not experienced any issues.

Although I do have a couple of related questions, which may be better suited to a new thread.

* tiddlywebplugins.form / BinaryUploadPlugin.js

When I create a tiddler using the binaryUpload macro, how do I customise the labels of the text entry fields for the binary tiddler name and tags? Can't see an obvious way and not sure whether it's in the plugin or elsewhere.

* tiddlywebplugins.urls

 I've installed this plugin and updated tiddlywebconfig.py accordingly. However, when I create a file "bags/urls/tiddlers/RewriteRoot/1" containing: 

"title:
/wiki

text:
/recipes/default/tiddlers.wiki"

I get:

 "404 Not Found

The server has not found anything matching the Request-URI."

Any ideas where I might be going wrong?

Cheers,

Andrew

chris...@gmail.com

unread,
Nov 11, 2014, 12:46:21 PM11/11/14
to tidd...@googlegroups.com
On Tue, 11 Nov 2014, Andrew Back wrote:

> Hi Chris,

Hi!

> I installed TiddlyWeb on Sunday and you'll be pleased to hear that I have
> not experienced any issues.

I am pleased to hear that.

> Although I do have a couple of related questions, which may be better
> suited to a new thread.
>
> * tiddlywebplugins.form / BinaryUploadPlugin.js
> * tiddlywebplugins.urls

Both of these plugins come from Ben Gillies, so I hope he will jump
in. If he doesn't if I see him on IRC I'll point him here.

In the meantime I can make some guesses on this one:

> text:
> /recipes/default/tiddlers.wiki"
>
> I get:
>
> "404 Not Found
>
> The server has not found anything matching the Request-URI."

Could be one of the following:

* You don't have a default recipe.
* You don't have the tiddlywebwiki plugin installed.
* Something is making your installed tiddlywebwiki plugin not
actually do its thing.

Can you paste your tiddlywebconfig.py?

Andrew Back

unread,
Nov 11, 2014, 2:57:58 PM11/11/14
to tidd...@googlegroups.com
Sure, it's:

config = {
    'server_host': {
        'scheme': 'https',
        'host': 'example.com',
        'port': '443',
    },
    'system_plugins': ['tiddlywebwiki', 'tiddlywebplugins.urls', 'tiddlywebplugins.form'],
    'secret': 'TOTALLYSECRET',
    'auth_systems': ['tiddlywebplugins.openid2'],
    'twanager_plugins': ['tiddlywebwiki', 'tiddlywebplugins.urls'],
    'tiddlywebwiki.friendlywiki': False,
    'bag_create_policy': 'ADMIN',
    'recipe_create_policy': 'ADMIN',
}

Cheers,

Andrew

Ben Gillies

unread,
Nov 12, 2014, 4:51:39 AM11/12/14
to tidd...@googlegroups.com
Hi Andrew

* tiddlywebplugins.form / BinaryUploadPlugin.js

When I create a tiddler using the binaryUpload macro, how do I customise the labels of the text entry fields for the binary tiddler name and tags? Can't see an obvious way and not sure whether it's in the plugin or elsewhere.

Where are you getting BinaryUploadPlugin.js from? The version in the TiddlySpace repo [1] has a number of labels in the locale object which can be overridden by creating a tiddler (you'll need to ensure it runs _after_ the plugin itself) with content similar to the following in it:


config.macros.binaryUpload.locale.titleDefaultValue = "OMG";
config.macros.binaryUpload.locale.tagsDefaultValue = "OMG";

You can see the full list of values available near the top of the code. There currently isn't really a way of changing the upload button text but it's pretty stable now (i.e. it hasn't changed in years afaik) so you should be able to change it directly in the plugin code.
 

* tiddlywebplugins.urls

 I've installed this plugin and updated tiddlywebconfig.py accordingly. However, when I create a file "bags/urls/tiddlers/RewriteRoot/1" containing: 

"title:
/wiki

text:
/recipes/default/tiddlers.wiki"

I get:

 "404 Not Found

The server has not found anything matching the Request-URI."

Any ideas where I might be going wrong?

When you say you have a file "bags/urls/tiddlers/RewriteRoot/1" presumably this means the tiddler title is actually "RewriteRoot" and not "/wiki" as it needs to be?

You should be able tot create routes via twanager with, in your case:

twanager url /wiki /recipes/default/tiddlers.wiki


HTH

Ben

Tobias Beer

unread,
Nov 14, 2014, 4:31:22 PM11/14/14
to tidd...@googlegroups.com
 
a number of labels in the locale object which can be overridden by creating a tiddler ...you'll need to ensure it runs _after_ the plugin itself

Make sure it's tagged "sytemConfig" ...we are still talking TW2 here, aren't we?

Best wishes, Tobias.

Andrew Back

unread,
Nov 27, 2014, 4:39:28 AM11/27/14
to tidd...@googlegroups.com
Hi Ben,


On Wednesday, 12 November 2014 09:51:39 UTC, Ben Gillies wrote:
Hi Andrew

* tiddlywebplugins.form / BinaryUploadPlugin.js

When I create a tiddler using the binaryUpload macro, how do I customise the labels of the text entry fields for the binary tiddler name and tags? Can't see an obvious way and not sure whether it's in the plugin or elsewhere.

Where are you getting BinaryUploadPlugin.js from? The version in the TiddlySpace repo [1] has a number of labels in the locale object which can be overridden by creating a tiddler (you'll need to ensure it runs _after_ the plugin itself) with content similar to the following in it:

From the TiddlySpace repo. It wasn't so much about wanting to change the default text that populates the field, and rather instead putting a label to the side of it.
 

config.macros.binaryUpload.locale.titleDefaultValue = "OMG";
config.macros.binaryUpload.locale.tagsDefaultValue = "OMG";

You can see the full list of values available near the top of the code. There currently isn't really a way of changing the upload button text but it's pretty stable now (i.e. it hasn't changed in years afaik) so you should be able to change it directly in the plugin code.
 

* tiddlywebplugins.urls

 I've installed this plugin and updated tiddlywebconfig.py accordingly. However, when I create a file "bags/urls/tiddlers/RewriteRoot/1" containing: 

"title:
/wiki

text:
/recipes/default/tiddlers.wiki"

I get:

 "404 Not Found

The server has not found anything matching the Request-URI."

Any ideas where I might be going wrong?

When you say you have a file "bags/urls/tiddlers/RewriteRoot/1" presumably this means the tiddler title is actually "RewriteRoot" and not "/wiki" as it needs to be?

You should be able tot create routes via twanager with, in your case:

twanager url /wiki /recipes/default/tiddlers.wiki


PEBKAC. Thanks, for the clarification, Ben — now working fine :o)

Btw, is there any way of auto-generating short URLs, should you want to use this as a URL shortener with these in addition to short URLs that are specific? By which I suppose I'm asking if this has already been done, rather than whether it's possible.

Best,

Andrew

Ben Gillies

unread,
Nov 27, 2014, 9:57:54 AM11/27/14
to tidd...@googlegroups.com
On Thu, Nov 27, 2014 at 9:39 AM, Andrew Back <arb...@gmail.com> wrote:
Hi Ben,

On Wednesday, 12 November 2014 09:51:39 UTC, Ben Gillies wrote:
Hi Andrew

* tiddlywebplugins.form / BinaryUploadPlugin.js

When I create a tiddler using the binaryUpload macro, how do I customise the labels of the text entry fields for the binary tiddler name and tags? Can't see an obvious way and not sure whether it's in the plugin or elsewhere.

Where are you getting BinaryUploadPlugin.js from? The version in the TiddlySpace repo [1] has a number of labels in the locale object which can be overridden by creating a tiddler (you'll need to ensure it runs _after_ the plugin itself) with content similar to the following in it:

From the TiddlySpace repo. It wasn't so much about wanting to change the default text that populates the field, and rather instead putting a label to the side of it.

Ah right, I don't think it supports that by default, sorry.
 

PEBKAC. Thanks, for the clarification, Ben — now working fine :o)

Btw, is there any way of auto-generating short URLs, should you want to use this as a URL shortener with these in addition to short URLs that are specific? By which I suppose I'm asking if this has already been done, rather than whether it's possible.

When you say auto generating you mean putting a url in a box and it spitting out a short url? I don't think one of those exists, sorry.

However, as each url is just a tiddler, in the urls bag, I imagine, if you created a recipe with the system bag a plugin bag and the urls bag (the urls bag at the bottom of the recipe) you could probably create a tiddler in the plugins bag that would do the job for you using some sort of pre existing TW plugin macro combination that I sure someone else knows a lot better than me.

Such a plugin would need to generate a random title representing the short url, and set the tiddler text to whatever is in an input box.
Reply all
Reply to author
Forward
0 new messages