From c1f7b0af1ce7841a1a9baa831155e51887081be0 Mon Sep 17 00:00:00 2001 From: "http://madduck.net/" Date: Wed, 26 Nov 2008 04:16:11 -0500 Subject: proper spelling of viruses --- doc/ikiwiki/pagespec/attachment.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/ikiwiki/pagespec') diff --git a/doc/ikiwiki/pagespec/attachment.mdwn b/doc/ikiwiki/pagespec/attachment.mdwn index 2d33db748..344a4a734 100644 --- a/doc/ikiwiki/pagespec/attachment.mdwn +++ b/doc/ikiwiki/pagespec/attachment.mdwn @@ -9,7 +9,7 @@ configuration setting. For example, to limit arbitrary files to 50 kilobytes, but allow larger mp3 files to be uploaded by joey into a specific directory, and -check all attachments for virii, something like this could be used: +check all attachments for viruses, something like this could be used: virusfree() and ((user(joey) and podcast/*.mp3 and mimetype(audio/mpeg) and maxsize(15mb)) or (!ispage() and maxsize(50kb))) -- cgit v1.2.3 From 89587a07f42626ef74853f95d039cf3857694210 Mon Sep 17 00:00:00 2001 From: justin Date: Wed, 21 Jan 2009 23:37:55 -0500 Subject: question on locked_pages and users() in pagespec --- doc/ikiwiki/pagespec/discussion.mdwn | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc/ikiwiki/pagespec') diff --git a/doc/ikiwiki/pagespec/discussion.mdwn b/doc/ikiwiki/pagespec/discussion.mdwn index 0733c90c8..835546a6b 100644 --- a/doc/ikiwiki/pagespec/discussion.mdwn +++ b/doc/ikiwiki/pagespec/discussion.mdwn @@ -65,3 +65,7 @@ How can I fix this? --[[sabr]] > I don't see why that wouldn't work. Can I download the source to your > wiki from somewhere to investigate? --[[Joey]] + +---- + +Should negation work with user(), with locked_pages in setup? I experimented with setting locked_pages => 'user(someuser)' and was able to edit as a different user. However, setting locked_pages => '!user(someuser)' doesn't seem to allow edits for only 'someuser' - it locks out all users. -- cgit v1.2.3 From ede3962a540108aa055004bb3d7d5a673c500c89 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 22 Jan 2009 15:30:14 -0500 Subject: response --- doc/ikiwiki/pagespec/discussion.mdwn | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'doc/ikiwiki/pagespec') diff --git a/doc/ikiwiki/pagespec/discussion.mdwn b/doc/ikiwiki/pagespec/discussion.mdwn index 835546a6b..c8bdea3a0 100644 --- a/doc/ikiwiki/pagespec/discussion.mdwn +++ b/doc/ikiwiki/pagespec/discussion.mdwn @@ -68,4 +68,13 @@ How can I fix this? --[[sabr]] ---- -Should negation work with user(), with locked_pages in setup? I experimented with setting locked_pages => 'user(someuser)' and was able to edit as a different user. However, setting locked_pages => '!user(someuser)' doesn't seem to allow edits for only 'someuser' - it locks out all users. +Should negation work with user(), with locked_pages in setup? I +experimented with setting locked_pages => 'user(someuser)' and was able to +edit as a different user. However, setting locked_pages => +'!user(someuser)' doesn't seem to allow edits for only 'someuser' - it +locks out all users. + +> Negation works with anything in any PageSpec. I tested the case you +> describe, and a negated pagespec worked for me; all users except the +> listed user (and except wiki admins of course) were locked out. +> --[[Joey]] -- cgit v1.2.3 From 65af0cceaaa5c23e6b3f9c204c540ccd00a456c6 Mon Sep 17 00:00:00 2001 From: justin Date: Thu, 22 Jan 2009 21:29:53 -0500 Subject: followup on pagespec negation --- doc/ikiwiki/pagespec/discussion.mdwn | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc/ikiwiki/pagespec') diff --git a/doc/ikiwiki/pagespec/discussion.mdwn b/doc/ikiwiki/pagespec/discussion.mdwn index c8bdea3a0..5788d4aed 100644 --- a/doc/ikiwiki/pagespec/discussion.mdwn +++ b/doc/ikiwiki/pagespec/discussion.mdwn @@ -78,3 +78,8 @@ locks out all users. > describe, and a negated pagespec worked for me; all users except the > listed user (and except wiki admins of course) were locked out. > --[[Joey]] + +>> It must be a local problem, then, cause I've tried it with two separate +>> machines. Both are running the most recent release of ikiwiki in +>> pkgsrc - 2.66. Perhaps an update to a newer version would solve the issue. + -- cgit v1.2.3 From fe8dc7fa4228caa0fdd377d4bb9d733a81de7b5b Mon Sep 17 00:00:00 2001 From: GünterLadwig Date: Sun, 25 Jan 2009 16:34:27 -0500 Subject: --- doc/ikiwiki/pagespec/discussion.mdwn | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc/ikiwiki/pagespec') diff --git a/doc/ikiwiki/pagespec/discussion.mdwn b/doc/ikiwiki/pagespec/discussion.mdwn index 5788d4aed..4eed3722c 100644 --- a/doc/ikiwiki/pagespec/discussion.mdwn +++ b/doc/ikiwiki/pagespec/discussion.mdwn @@ -83,3 +83,12 @@ locks out all users. >> machines. Both are running the most recent release of ikiwiki in >> pkgsrc - 2.66. Perhaps an update to a newer version would solve the issue. +---- + +Is there a way to refer to all subpages of the current page, if the name of the +current page is not known (i.e. the pagespec is used in a template)? The ./ syntax +does not seem suitable for this, as + +> \[[!map pages="./*"]] + +also lists the current page and all its siblings. -- cgit v1.2.3 From f71abc92aa279fbe0b7578b8c4752d775dd4a259 Mon Sep 17 00:00:00 2001 From: GünterLadwig Date: Sun, 25 Jan 2009 16:37:32 -0500 Subject: --- doc/ikiwiki/pagespec/discussion.mdwn | 9 --------- 1 file changed, 9 deletions(-) (limited to 'doc/ikiwiki/pagespec') diff --git a/doc/ikiwiki/pagespec/discussion.mdwn b/doc/ikiwiki/pagespec/discussion.mdwn index 4eed3722c..5788d4aed 100644 --- a/doc/ikiwiki/pagespec/discussion.mdwn +++ b/doc/ikiwiki/pagespec/discussion.mdwn @@ -83,12 +83,3 @@ locks out all users. >> machines. Both are running the most recent release of ikiwiki in >> pkgsrc - 2.66. Perhaps an update to a newer version would solve the issue. ----- - -Is there a way to refer to all subpages of the current page, if the name of the -current page is not known (i.e. the pagespec is used in a template)? The ./ syntax -does not seem suitable for this, as - -> \[[!map pages="./*"]] - -also lists the current page and all its siblings. -- cgit v1.2.3 From d5cd8312189039e61a38192db7d95e06f4c06bce Mon Sep 17 00:00:00 2001 From: GuenterLadwig Date: Sun, 25 Jan 2009 16:40:29 -0500 Subject: --- doc/ikiwiki/pagespec/discussion.mdwn | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc/ikiwiki/pagespec') diff --git a/doc/ikiwiki/pagespec/discussion.mdwn b/doc/ikiwiki/pagespec/discussion.mdwn index 5788d4aed..4eed3722c 100644 --- a/doc/ikiwiki/pagespec/discussion.mdwn +++ b/doc/ikiwiki/pagespec/discussion.mdwn @@ -83,3 +83,12 @@ locks out all users. >> machines. Both are running the most recent release of ikiwiki in >> pkgsrc - 2.66. Perhaps an update to a newer version would solve the issue. +---- + +Is there a way to refer to all subpages of the current page, if the name of the +current page is not known (i.e. the pagespec is used in a template)? The ./ syntax +does not seem suitable for this, as + +> \[[!map pages="./*"]] + +also lists the current page and all its siblings. -- cgit v1.2.3