[Catalyst] Something odd with chained actions

Nilson Santos Figueiredo Junior acid06 at gmail.com
Mon Jul 10 06:44:20 CEST 2006


I'm not sure if this is a bug or if it is by design but:

  sub test1 : PathPart('test') Chained('/') CaptureArgs('1') { }
  sub test2 : PathPart('test2') Chained('test')  { }

yields no path part actions. The weirdest thing is that I actually get
an empty "Loaded Path Part actions" box in the debug output instead of
it not appearing at all.

However, if I use:

  sub test1 : PathPart('test') Chained('/') CaptureArgs('1') { }
  sub test2 : PathPart('test2') Chained('test1')  { }

It understands it correctly and I get:

[debug] Loaded Path Part actions:
.-------------------------------------+--------------------------------------.
| Path Spec                           | Private                              |
+-------------------------------------+--------------------------------------+
| /test/*/test2/...                   | /login/test1 (1)                     |
|                                     | => /login/test2                      |
'-------------------------------------+--------------------------------------'



More information about the Catalyst mailing list