[Catalyst] Reseting a chained action
Matt S Trout
dbix-class at trout.me.uk
Tue Aug 7 14:08:32 GMT 2007
On Tue, Aug 07, 2007 at 10:13:59AM +0100, Pedro Melo wrote:
> Hi,
>
> In the course of a project I'm working on, I found it useful to
> "reset" chained actions. It would work like this:
>
> . assume that you have a chain like /company/ID/copywrongs
> . and in certain situations you want a alternative environment for
> the chain, like this:
> /approve/company/ID/copywrongs
>
> The /approve would modify the stash to include some alternative
> schema or environment that the rest of the chain could use to tweak
> their behavior. The thing is, the /approve action would like to tell
> catalyst "ei, please disregard me and start over".
Wouldn't it be simpler to have two parallel chains via subclassing, one
set chained off '/' and one off the 'approve' action?
--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director Want a managed development or deployment platform?
Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/
More information about the Catalyst
mailing list