[Seaside] Request start/end (and Glorp)

Daniel Lyons fusion at storytotell.org
Mon Jan 20 18:49:31 UTC 2014


Thanks, Philippe!

On Jan 20, 2014, at 11:43 AM, Philippe Marschall <philippe.marschall at gmail.com> wrote:
> WAMutualExclusionFilter >> #handleFiltered:
> - make a subclass
> - override the method
>  - do what you want to happen before
>  - set up thread locals or what you need
>  - send #handleFiltered: to super (this runs the "normal" request processing)
>  - do what you want to happen after in an #ensure: (IIRC it was
> possible in Squeak that #ensure: would run in a different process)
>  - you can try to get fancy and roll back the database transaction in
> case of an exception but you'll have to pay attention to
> WAResponseNotification and friends
> - add it to your application
> 
> Cheers
> Philippe
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

— 
Daniel Lyons



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20140120/29c1c2c9/attachment.htm


More information about the seaside mailing list