[Catalyst] Plugin::SubRequest nothing for identify a subrequest

Matt S Trout dbix-class at trout.me.uk
Fri Mar 24 19:33:55 CET 2006


JOUANNE Mickael wrote:
> Matt S Trout (dbix-class at trout.me.uk) a �crit :
>> JOUANNE Mickael wrote:
>>> Hi.
>>>
>>> We want to identify subrequest for make some redirect or not.
>>> But in Plugin::SubRequest the is nothing for it.
>> No patch is required. Just pass a stash of { is_subrequest => 1 } if you want 
>> it identifiable.
> 
> You can do it that way.
> But because i'm doing the stuffs in the dispatcher, it's cleaner to
> use the patch for me.

Care to elaborate on that?

> So If you don't want to use my patch, it's ok.

Your patch fiddles with the request object in a way that breaks both the 
interface and the encapsulation, and there's no way to turn it off. I'd be 
interested in a configurable way to make subrequests clearly subrequests, but 
it'd need to be a sane implementation rather than the nasty hack you've 
provided so far :)

-- 
      Matt S Trout       Offering custom development, consultancy and support
   Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +



More information about the Catalyst mailing list