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/ _______________________________________________ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/