On Tue, Sep 04, 2007 at 12:02:14PM +0000, Fayland Lam wrote: > 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.
Beautiful. fayland++ -- 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/