Re: [Catalyst] $c->detach and $c->action
On 01/02/07, Matt S Trout <[EMAIL PROTECTED]> wrote: On 1 Feb 2007, at 02:05, Michael Reece wrote: > is there something like detach that will also set the current > 'action' to the one being detached to? Not until 5.80 but there's no reason you can't simply set $c->action - it -is- an accessor. I don't see this implemented in current yet. I've had a go, but don't understand the dispatcher well enough. If someone could give some pointers as to what it'll entail, I'd be willing to spend some time and have another go at implementing it. Also - is the plan that forward() and detach() will do this by default, or will there be a new method to get this effect? Cheers, Carl ___ 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/
Re: [Catalyst] $c->detach and $c->action
yes, but that means doing the private-path-to-action work that detach (or forward/_invoke_as_path) will re-do anyway. it may be worth the cost anyway in order to have the functionality, so i may go ahead and implement a detach_as_action (or whatever) here. thx > > On 1 Feb 2007, at 02:05, Michael Reece wrote: > >> is there something like detach that will also set the current >> 'action' to the one being detached to? > > Not until 5.80 but there's no reason you can't simply set $c->action > - it -is- an accessor. > > -- > Matt S Trout, Technical Director, Shadowcat Systems Ltd. > Offering custom development, consultancy and support contracts for > Catalyst, > DBIx::Class and BAST. Contact mst (at) shadowcatsystems.co.uk for > details. > + Help us build a better perl ORM: http://dbix- > class.shadowcatsystems.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/ > ___ 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/
Re: [Catalyst] $c->detach and $c->action
On 1 Feb 2007, at 02:05, Michael Reece wrote: is there something like detach that will also set the current 'action' to the one being detached to? Not until 5.80 but there's no reason you can't simply set $c->action - it -is- an accessor. -- Matt S Trout, Technical Director, Shadowcat Systems Ltd. Offering custom development, consultancy and support contracts for Catalyst, DBIx::Class and BAST. Contact mst (at) shadowcatsystems.co.uk for details. + Help us build a better perl ORM: http://dbix- class.shadowcatsystems.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/