List Info

Thread: Re: Catalyst::Plugin::DBIC::QueryLog




Re: Catalyst::Plugin::DBIC::QueryLog
country flaguser name
China
2007-09-04 07:02:14
Jonathan Rockway wrote:
> Fayland Lam wrote:
>> see attachment. check if it's OK?
>>
>> now it's not per request any more. hmm, after
several requests,
> mst wrote:
>> That's trivial with
Catalyst::Component::InstancePerContext.
> 
> He intended for you to use that. 
> 
> It implements the per-request magic for you with some
clever use of
> ACCEPT_CONTEXT and the stash.  Basically, it calls your
builder method
> if you don't already have an instance in $c->stash. 
Since that gets
> cleared every request, you get your per-request.
> 
> So, try again   You're
almost there 


Thank God. it works now. 
plz have a check, then I'll commit it to Catalyst trunk and
release as a 
CPAN module.

Thanks for your help.


> 
> Regards,
> Jonathan Rockway
> 
> 
> 
>
------------------------------------------------------------
------------
> 
> _______________________________________________
> List: Catalystlists.rawmode.org
> Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-
archive.com/catalystlists.rawmode.org/
> Dev site: http://dev.catalyst.per
l.org/


-- 
Fayland Lam // http://www.fayland.org/

_______________________________________________
List: Catalystlists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalystlists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/

  
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )