[Catalyst-dev] [IMPORTANT] TEST Catalyst::Runtime 5.7100 RC1 (aka 5.7099_02)

Brian Cassidy brian.cassidy at gmail.com
Thu Jul 17 00:43:56 BST 2008


On Wed, Jul 16, 2008 at 7:39 PM, Peter Flanigan <pjf at roxsoft.co.uk> wrote:
> __PACKAGE__->config( namespace => q() );
>
> sub lang : Chained('/') PathPart('') CaptureArgs(1) {
> }
>
> sub about : Chained('lang') PathPrefix Args(0) {
> }
>
> Which produced this debug loading output under 5.7014
>
> .-------------------------------------+-----------------------------
> | Path Spec                           | Private
> +-------------------------------------+-----------------------------
> | /*/about                            | /lang (1)
> |                                     | => /about
>
> and under 5.7099_02
>
> .-------------------------------------+--------------------------.
> | Path Spec                           | Private
> +-------------------------------------+-------------------------
> | /*                                  | /lang (1)
> |                                     | => /about

I think there's a logical explanation here, as ash stated, you were
using PathPrefix before it existed. :)

In a little more detail:

sub about : Chained('lang') PathPrefix Args(0) {

With a working PathPrefix, that would translate to, in this particular
case, PathPart('') -- hence "/*".

Without a working PathPrefix, it's a no-op (hrmm, do invalid
attributes not throw errors?), and the default PathPart setting is the
sub name, hence "/*/about"

HTH,

-Brian



More information about the Catalyst-dev mailing list