[Catalyst-dev] Catalyst::Manual Questions For The Group
Kieren Diment
diment at gmail.com
Sun Nov 15 19:29:34 GMT 2009
On 16/11/2009, at 1:48 AM, hkclark at gmail.com wrote:
> Hi Everyone,
>
> I have been working on resolving various Catalyst::Manual tickets and
> getting a long-overdue release of the manual & tutorial out. I
> wanted to
> get some input on a few of the tickets if i could:
>
> 1) #47363: Remove References to Old/New Ways of Doing Things
> http://rt.cpan.org/Public/Bug/Display.html?id=47363
>
> I took a look at some of these but I wasn't sure if I should start
> changing
> things or not. It seems that every time I don't cover variation
> people
> might run into if they aren't on the latest/recommended versions,
> then they
> get "stuck" and frustrated. I agree that the "Note that if you are
> using
> version XX of XX you ..." stuff can be distracting, but it seems
> like a
> necessary evil (unless the issue is *really* old... I do try to
> eventually
> prune those out). Thoughts?
>
I agree with Kiffin. Ideally there would be an appendix with some of
the more relevant ways of dealing with things listed in there.
>
> 2) #31164: Catalyst::Manual::Cookbook mod_perl configuration
> incorrect?
> http://rt.cpan.org/Public/Bug/Display.html?id=31164
One of the problems with mod_perl is that its sufficiently big and
complex enough that it's not trivial to have a spare mod_perl server
lying around. Maybe someone who has one anyway can confirm this
>
> I'm not really a mod_perl user. Can anyone confirm if these changes
> are
> correct? Here is the patch:
>
> --- catalyst_manual_cookbook.pod.orig 2007-12-03 12:15:11.000000000
> +0000
> +++ catalyst_manual_cookbook.pod 2007-12-03 12:16:05.000000000 +0000
> @@ -1483,8 +1483,10 @@
> when run within mod_perl. This makes the configuration extremely easy.
> Here is a basic Apache 2 configuration.
>
> - PerlSwitches -I/var/www/MyApp/lib
> - PerlModule MyApp
> + <Perl>
> + use lib '/var/www/MyApp/lib';
> + use MyApp;
> + </Perl>
>
> <Location />
> SetHandler modperl
>
> 3) #50953: missing information: action with various args numbers
> http://rt.cpan.org/Public/Bug/Display.html?id=50953
>
> User asks "what If I want to accept with 0, 1 or 2 but not anymore
> arguments
> than that?"... my understanding is that you can specify an exact
> number of
> :Args or omit it for any number, but not do a range of acceptable
> args. Can
> anyone confirm if this is correct?
>
You can only have varying URL Args for things at the end of the chain,
kind of by definition, so this is the :Args [nothing] use case. Then
you'd need to check length of the $c->req->args array ref manually in
your controller if you only wanted a certain range of trailing args.
More information about the Catalyst-dev
mailing list