On Wed 02 Jun 2004, Dominic Hargreaves dom@earth.li wrote:
I've changed autocreation from something that happens at visit time to something that happens at referring node creation time.
It's not working quite right - for example I added a node on London to the "Clubs and Societies" category and despite the prior existence of "Category Clubs And Societies" it went ahead and auto-created "Category Clubs and Societies". It needs to ucfirst the category name before it checks for existence.
(Case-insensitivity works fine for all other aspects of categories and locales as far as I know.)
Kake
On Fri, Jun 18, 2004 at 04:45:22AM +0100, Kate L Pugh wrote:
It's not working quite right - for example I added a node on London to the "Clubs and Societies" category and despite the prior existence of "Category Clubs And Societies" it went ahead and auto-created "Category Clubs and Societies". It needs to ucfirst the category name before it checks for existence.
ucfirst won't help in this case, presumably, since the "a" of "and" isn't the first character.
(Case-insensitivity works fine for all other aspects of categories and locales as far as I know.)
Shouldn't node_exists be fixed to be case-insensitive, instead?
Dom.
On Fri 18 Jun 2004, Dominic Hargreaves dom@earth.li wrote:
ucfirst won't help in this case, presumably, since the "a" of "and" isn't the first character.
ucfirst each word.
Shouldn't node_exists be fixed to be case-insensitive, instead?
That might be a better way to do it, yes. It would be a parameter though, something like
my $ok = $wiki->node_exists( name => "Foo", ignore_case => 1, );
since some people actually do want case-sensitive wikis.
Kake
On Friday 18 June 2004 08:27 am, Kate L Pugh wrote:
my $ok = $wiki->node_exists( name => "Foo", ignore_case => 1, );
since some people actually do want case-sensitive wikis.
If people want to be that masochistic, they deserve what they get. I can't imagine trying to navigate a wiki where perigrin ne Perigrin ne PeRiGrIn ... I'd make one typo in a node name (capitalize my nick for example) and it would all be over for me.
-Chris (nee perigrin)
On Friday 18 June 2004 08:27 am, Kate L Pugh wrote:
since some people actually do want case-sensitive wikis.
On Fri 18 Jun 2004, Chris Prather chris@prather.org wrote:
If people want to be that masochistic, they deserve what they get. I can't imagine trying to navigate a wiki where perigrin ne Perigrin ne PeRiGrIn ...
Yes, they do :) But I want CGI::Wiki to be a general framework, not one restricted to what I personally want in a wiki.
Kake
openguides-dev@lists.openguides.org