X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/572af908eb0f91926ad4feba4cc557da4c6a645f..9eeb031265f762e37bc85b6cfa418f1a16d80b5f:/doc/index/discussion.mdwn diff --git a/doc/index/discussion.mdwn b/doc/index/discussion.mdwn index 0a0b2e972..1e8dd2e17 100644 --- a/doc/index/discussion.mdwn +++ b/doc/index/discussion.mdwn @@ -359,7 +359,15 @@ Any tool to edit the user database? > to do it rarely, and the data I've wanted has been different each time. > --[[Joey]] ->> Thanks for these examples -- I have been using them. I don't know the Storable yet. Can someone share an example of removing a user? (I now setup account\_creation\_password and I have some spammer with different login names that I have banned that I might as well remove from the userdb.) +>> Thanks for these examples -- I have been using them. I don't know the +>> Storable yet. Can someone share an example of removing a user? (I now +>> setup account\_creation\_password and I have some spammer with different +>> login names that I have banned that I might as well remove from the +>> userdb.) + +>>> Let's see, you could do something like this: +>>> perl -le 'use Storable; my $userinfo=Storable::retrieve("userdb"); delete $$userinfo{"joey"}; Storable::lock_store($userinfo, "userdb")' +>>> I suppose I should stop being lame and create a command line tool wrapping up these operations.. --[[Joey]] ---- @@ -405,3 +413,14 @@ I'm playing around with various ways that I can use subversion with ikiwiki. > in the same repo. If you have two wikis in one repository, you will need > to write a post-commit script that calls the post-commit wrappers for each > wiki. + +---- + +I'm sure that this is documented somewhere but I've ransacked the wiki and I can't find it. :-( What are the allowed characters in an ikiwiki page name? I'm writing a simple script to make updating my blog easier and need to filter invalid characters (so far I've found that # and , aren't allowed ;-)). Thanks for any pointers. -- [[AdamShand]] + +> The default `wiki_file_regexp` matches filenames containing only +> `[-[:alnum:]_.:/+]` +> +> The IkiWiki::titlepage() function will convert freeform text to a valid +> page name. See [[todo/should_use_a_standard_encoding_for_utf_chars_in_filenames]] +> for an example. --[[Joey]]